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

Method GetActivedDelegateNum

src/persistence/delegatedb.cpp:101–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100}
101uint32_t CDelegateDBCache::GetActivedDelegateNum() {
102 VoteDelegateVector dv;
103 if (GetActiveDelegates(dv)){
104 return dv.size();
105 }
106 throw runtime_error("get actived delegate num error");
107}
108
109bool CDelegateDBCache::IsActiveDelegate(const CRegID &regid) {
110 VoteDelegate delegate;

Callers 2

listdelegatesFunction · 0.80
GetFinalBlockMinerCountFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected