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

Function OutputTx

src/bitcoin-tx.cpp:746–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746static 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
756static std::string readStdin()
757{

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