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

Method GetMinerListByBlockHash

src/miner/pbftcontext.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11CPBFTContext pbftContext ;
12
13bool CPBFTContext::GetMinerListByBlockHash(const uint256 blockHash, set<CRegID>& miners) {
14
15 LOCK(cs_block_miner_list);
16 auto it = blockMinerListMap.find(blockHash);
17 if (it == blockMinerListMap.end())
18 return false;
19
20 miners = it->second;
21
22 return true;
23}
24
25bool CPBFTContext::SaveMinersByHash(uint256 blockhash, VoteDelegateVector delegates) {
26 set<CRegID> miners;

Callers 6

GetFinalBlockMinerCountFunction · 0.80
UpdateLocalFinBlockMethod · 0.80
UpdateGlobalFinBlockMethod · 0.80
BroadcastBlockFinalityFunction · 0.80
BroadcastBlockConfirmFunction · 0.80
CheckPBFTMessageSignerFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected