| 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 | { |
nothing calls this directly
no test coverage detected