| 11 | CPBFTContext pbftContext ; |
| 12 | |
| 13 | bool 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 | |
| 25 | bool CPBFTContext::SaveMinersByHash(uint256 blockhash, VoteDelegateVector delegates) { |
| 26 | set<CRegID> miners; |
no test coverage detected