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

Function OutputTxHash

src/bitcoin-tx.cpp:753–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753static void OutputTxHash(const CTransaction& tx)
754{
755 std::string strHexHash = tx.GetHash().GetHex(); // the hex-encoded transaction hash (aka the transaction id)
756
757 tfm::format(std::cout, "%s\n", strHexHash);
758}
759
760static void OutputTxHex(const CTransaction& tx)
761{

Callers 1

OutputTxFunction · 0.85

Calls 3

formatFunction · 0.70
GetHexMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected