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

Method PriorityComputer

src/txrequest.cpp:117–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 const uint64_t m_k0, m_k1;
116public:
117 explicit PriorityComputer(bool deterministic) :
118 m_k0{deterministic ? 0 : GetRand(0xFFFFFFFFFFFFFFFF)},
119 m_k1{deterministic ? 0 : GetRand(0xFFFFFFFFFFFFFFFF)} {}
120
121 Priority operator()(const uint256& txhash, NodeId peer, bool preferred) const
122 {

Callers

nothing calls this directly

Calls 1

GetRandFunction · 0.85

Tested by

no test coverage detected