Search in sources :

Example 11 with MeetingMember

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);
}
Also used : MeetingMember(io.nuls.consensus.poc.model.MeetingMember)

Aggregations

MeetingMember (io.nuls.consensus.poc.model.MeetingMember)11 MeetingRound (io.nuls.consensus.poc.model.MeetingRound)6 CancelDeposit (io.nuls.consensus.poc.protocol.entity.CancelDeposit)4 Deposit (io.nuls.consensus.poc.protocol.entity.Deposit)4 CoinDataResult (io.nuls.account.ledger.model.CoinDataResult)3 Agent (io.nuls.consensus.poc.protocol.entity.Agent)3 IOException (java.io.IOException)3 BlockExtendsData (io.nuls.consensus.poc.model.BlockExtendsData)2 RedPunishData (io.nuls.consensus.poc.protocol.entity.RedPunishData)2 StopAgent (io.nuls.consensus.poc.protocol.entity.StopAgent)2 RedPunishTransaction (io.nuls.consensus.poc.protocol.tx.RedPunishTransaction)2 YellowPunishTransaction (io.nuls.consensus.poc.protocol.tx.YellowPunishTransaction)2 ContractResult (io.nuls.contract.dto.ContractResult)2 Page (io.nuls.core.tools.page.Page)2 NulsException (io.nuls.kernel.exception.NulsException)2 ValidateResult (io.nuls.kernel.validate.ValidateResult)2 YellowPunishData (io.nuls.consensus.poc.protocol.entity.YellowPunishData)1 SmallBlock (io.nuls.protocol.model.SmallBlock)1 Future (java.util.concurrent.Future)1