| 765 | } |
| 766 | |
| 767 | static void OutputTx(const CTransaction& tx) |
| 768 | { |
| 769 | if (gArgs.GetBoolArg("-json", false)) |
| 770 | OutputTxJSON(tx); |
| 771 | else if (gArgs.GetBoolArg("-txid", false)) |
| 772 | OutputTxHash(tx); |
| 773 | else |
| 774 | OutputTxHex(tx); |
| 775 | } |
| 776 | |
| 777 | static std::string readStdin() |
| 778 | { |
no test coverage detected