| 744 | } |
| 745 | |
| 746 | static void OutputTx(const CTransaction& tx) |
| 747 | { |
| 748 | if (gArgs.GetBoolArg("-json", false)) |
| 749 | OutputTxJSON(tx); |
| 750 | else if (gArgs.GetBoolArg("-txid", false)) |
| 751 | OutputTxHash(tx); |
| 752 | else |
| 753 | OutputTxHex(tx); |
| 754 | } |
| 755 | |
| 756 | static std::string readStdin() |
| 757 | { |
no test coverage detected