| 805 | } |
| 806 | |
| 807 | static void OutputTx(const CTransaction& tx) |
| 808 | { |
| 809 | if (gArgs.GetBoolArg("-json", false)) |
| 810 | OutputTxJSON(tx); |
| 811 | else if (gArgs.GetBoolArg("-txid", false)) |
| 812 | OutputTxHash(tx); |
| 813 | else |
| 814 | OutputTxHex(tx); |
| 815 | } |
| 816 | |
| 817 | static std::string readStdin() |
| 818 | { |
no test coverage detected