#include "ordering_service_proposal_creation_strategy.hpp"


Public Types | |
| using | RoundType = consensus::Round |
| shortcut for round type More... | |
Public Member Functions | |
| virtual void | onCollaborationOutcome (RoundType round, size_t peers_in_round)=0 |
| virtual bool | shouldCreateRound (RoundType round)=0 |
| virtual boost::optional< RoundType > | onProposalRequest (RoundType requested_round)=0 |
| virtual | ~ProposalCreationStrategy ()=default |
Class provides a strategy for creation proposals regarding to new rounds and requests from other peers
shortcut for round type
|
virtualdefault |
|
pure virtual |
Indicates the start of new round.
| round | - proposal round which has started |
| peers_in_round | - peers which participate in new round |
Implemented in iroha::ordering::KickOutProposalCreationStrategy.
|
pure virtual |
Notify the strategy about proposal request
| requested_round | - in which round proposal is requested |
Implemented in iroha::ordering::KickOutProposalCreationStrategy.
|
pure virtual |
| round | - new consensus round |
Implemented in iroha::ordering::KickOutProposalCreationStrategy.