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

Function ToGenTxid

src/protocol.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121GenTxid ToGenTxid(const CInv& inv)
122{
123 assert(inv.IsGenTxMsg());
124 return inv.IsMsgWtx() ? GenTxid{Wtxid::FromUint256(inv.hash)} : GenTxid{Txid::FromUint256(inv.hash)};
125}

Callers 2

ProcessGetDataMethod · 0.85
ProcessMessageMethod · 0.85

Calls 2

IsGenTxMsgMethod · 0.80
IsMsgWtxMethod · 0.80

Tested by

no test coverage detected