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