MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / DelegateVoteFromKey

Function DelegateVoteFromKey

src/persistence/delegatedb.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

GetVoteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected