#include "kick_out_proposal_creation_strategy.hpp"


Public Types | |
| using | SupermajorityCheckerType = iroha::consensus::yac::SupermajorityChecker |
Public Types inherited from iroha::ordering::ProposalCreationStrategy | |
| using | RoundType = consensus::Round |
| shortcut for round type More... | |
Public Member Functions | |
| KickOutProposalCreationStrategy (std::shared_ptr< SupermajorityCheckerType > tolerance_checker) | |
| void | onCollaborationOutcome (RoundType round, size_t peers_in_round) override |
| bool | shouldCreateRound (RoundType round) override |
| boost::optional< RoundType > | onProposalRequest (RoundType requested_round) override |
Public Member Functions inherited from iroha::ordering::ProposalCreationStrategy | |
| virtual | ~ProposalCreationStrategy ()=default |
Creation strategy based on supermajority checker tolerance condition
| using iroha::ordering::KickOutProposalCreationStrategy::SupermajorityCheckerType = iroha::consensus::yac::SupermajorityChecker |
| KickOutProposalCreationStrategy::KickOutProposalCreationStrategy | ( | std::shared_ptr< SupermajorityCheckerType > | tolerance_checker | ) |
|
overridevirtual |
Indicates the start of new round.
| round | - proposal round which has started |
| peers_in_round | - peers which participate in new round |
Implements iroha::ordering::ProposalCreationStrategy.
|
overridevirtual |
Notify the strategy about proposal request
| requested_round | - in which round proposal is requested |
Implements iroha::ordering::ProposalCreationStrategy.
|
overridevirtual |
| round | - new consensus round |
Implements iroha::ordering::ProposalCreationStrategy.