MCPcopy Create free account
hub / github.com/ElementsProject/elements / operator()

Method operator()

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

Source from the content-addressed store, hash-verified

119 m_k1{deterministic ? 0 : GetRand(0xFFFFFFFFFFFFFFFF)} {}
120
121 Priority operator()(const uint256& txhash, NodeId peer, bool preferred) const
122 {
123 uint64_t low_bits = CSipHasher(m_k0, m_k1).Write(txhash.begin(), txhash.size()).Write(peer).Finalize() >> 1;
124 return low_bits | uint64_t{preferred} << 63;
125 }
126
127 Priority operator()(const Announcement& ann) const
128 {

Callers

nothing calls this directly

Calls 5

CSipHasherClass · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected