hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ordering::KickOutProposalCreationStrategy Class Reference

#include "kick_out_proposal_creation_strategy.hpp"

Inheritance diagram for iroha::ordering::KickOutProposalCreationStrategy:
Inheritance graph
Collaboration diagram for iroha::ordering::KickOutProposalCreationStrategy:
Collaboration graph

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< RoundTypeonProposalRequest (RoundType requested_round) override
 
- Public Member Functions inherited from iroha::ordering::ProposalCreationStrategy
virtual ~ProposalCreationStrategy ()=default
 

Detailed Description

Creation strategy based on supermajority checker tolerance condition

Member Typedef Documentation

Constructor & Destructor Documentation

KickOutProposalCreationStrategy::KickOutProposalCreationStrategy ( std::shared_ptr< SupermajorityCheckerType tolerance_checker)

Member Function Documentation

void KickOutProposalCreationStrategy::onCollaborationOutcome ( RoundType  round,
size_t  peers_in_round 
)
overridevirtual

Indicates the start of new round.

Parameters
round- proposal round which has started
peers_in_round- peers which participate in new round

Implements iroha::ordering::ProposalCreationStrategy.

boost::optional< ProposalCreationStrategy::RoundType > KickOutProposalCreationStrategy::onProposalRequest ( RoundType  requested_round)
overridevirtual

Notify the strategy about proposal request

Parameters
requested_round- in which round proposal is requested
Returns
round where proposal is required to be created immediately

Implements iroha::ordering::ProposalCreationStrategy.

bool KickOutProposalCreationStrategy::shouldCreateRound ( RoundType  round)
overridevirtual
Parameters
round- new consensus round
Returns
true, if proposal should be created in the new round

Implements iroha::ordering::ProposalCreationStrategy.


The documentation for this class was generated from the following files: