MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetShortID

Method GetShortID

src/blockencodings.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42uint64_t CBlockHeaderAndShortTxIDs::GetShortID(const uint256& txhash) const {
43 static_assert(SHORTTXIDS_LENGTH == 6, "shorttxids calculation assumes 6-byte shorttxids");
44 return SipHashUint256(shorttxidk0, shorttxidk1, txhash) & 0xffffffffffffL;
45}
46
47std::vector<CTransactionRef> PartiallyDownloadedBlock::GetAvailableTx() {
48 std::vector<CTransactionRef> found_tx;

Callers 1

InitDataMethod · 0.45

Calls 1

SipHashUint256Function · 0.85

Tested by

no test coverage detected