| 538 | } |
| 539 | |
| 540 | static void OutputTx(const CTransaction& tx) |
| 541 | { |
| 542 | if (GetBoolArg("-json", false)) |
| 543 | OutputTxJSON(tx); |
| 544 | else if (GetBoolArg("-txid", false)) |
| 545 | OutputTxHash(tx); |
| 546 | else |
| 547 | OutputTxHex(tx); |
| 548 | } |
| 549 | |
| 550 | static string readStdin() |
| 551 | { |
no test coverage detected