| 16 | } |
| 17 | |
| 18 | inline static uint64_t DelegateVoteFromKey(const CFixedUInt64 &voteKey) { |
| 19 | static_assert(ULONG_MAX == 0xFFFFFFFFFFFFFFFF, "ULONG_MAX == 0xFFFFFFFFFFFFFFFF"); |
| 20 | return ULONG_MAX - voteKey.value; |
| 21 | } |
| 22 | |
| 23 | uint64_t CTopDelegatesIterator::GetVote() const { |
| 24 | return DelegateVoteFromKey(GetKey().first); |