use of io.nuls.consensus.poc.model.MeetingMember in project nuls by nuls-io.
the class NulsProtocolProcess method calculateCoverageEveryRound.
/**
* 每轮重新计算覆盖率
*/
private void calculateCoverageEveryRound(BlockHeader header, BlockExtendsData extendsData, MeetingRound currentRound) {
Set<String> memberAddressSet = new HashSet<>();
if (currentRound != null && currentRound.getMemberList() != null) {
List<MeetingMember> memberList = currentRound.getMemberList();
for (MeetingMember member : memberList) {
memberAddressSet.add(member.getPackingAddressStr());
}
}
calculateProtocols(extendsData, header, memberAddressSet);
calculateTempProtocols(extendsData, header, memberAddressSet);
}
Aggregations