MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / OutputTx

Function OutputTx

src/bitcoin-tx.cpp:767–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767static 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
777static std::string readStdin()
778{

Callers 1

CommandLineRawTxFunction · 0.85

Calls 4

OutputTxJSONFunction · 0.85
OutputTxHashFunction · 0.85
OutputTxHexFunction · 0.85
GetBoolArgMethod · 0.80

Tested by

no test coverage detected