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

Method GetActiveDelegates

src/persistence/delegatedb.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool CDelegateDBCache::GetActiveDelegates(VoteDelegateVector &voteDelegates) {
131 bool res = active_delegates_cache.GetData(voteDelegates);
132 if (res){
133 assert(voteDelegates.size() != 0 );
134 }
135 return res;
136}
137
138bool CDelegateDBCache::SetActiveDelegates(const VoteDelegateVector &voteDelegates) {
139 return active_delegates_cache.SetData(voteDelegates);

Callers 12

AcceptBlockFunction · 0.80
ProcessBlockDelegatesMethod · 0.80
listdelegatesFunction · 0.80
getminerbyblocktimeFunction · 0.80
get_active_producersMethod · 0.80
get_active_producersMethod · 0.80
VerifyRewardTxFunction · 0.80
GetMinerFunction · 0.80
ProcessAssetFeeFunction · 0.80
ProcessDexOperatorFeeFunction · 0.80
CheckIsGovernorFunction · 0.80

Calls 2

GetDataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected