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

Method GetShortID

src/blockencodings.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41uint64_t CBlockHeaderAndShortTxIDs::GetShortID(const uint256& txhash) const {
42 static_assert(SHORTTXIDS_LENGTH == 6, "shorttxids calculation assumes 6-byte shorttxids");
43 return SipHashUint256(shorttxidk0, shorttxidk1, txhash) & 0xffffffffffffL;
44}
45
46
47

Callers 1

InitDataMethod · 0.45

Calls 1

SipHashUint256Function · 0.85

Tested by

no test coverage detected