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

#include "unique_creation_proposal_strategy.hpp"

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

Public Member Functions

 UniqueCreationProposalStrategy ()=default
 
void onCollaborationOutcome (RoundType, size_t) override
 
bool shouldCreateRound (RoundType round) override
 
boost::optional< RoundTypeonProposalRequest (RoundType round) override
 
- Public Member Functions inherited from iroha::ordering::ProposalCreationStrategy
virtual ~ProposalCreationStrategy ()=default
 

Additional Inherited Members

- Public Types inherited from iroha::ordering::ProposalCreationStrategy
using RoundType = consensus::Round
 shortcut for round type More...
 

Detailed Description

Creating proposal once a round

Constructor & Destructor Documentation

◆ UniqueCreationProposalStrategy()

iroha::ordering::UniqueCreationProposalStrategy::UniqueCreationProposalStrategy ( )
default

Member Function Documentation

◆ onCollaborationOutcome()

void iroha::ordering::UniqueCreationProposalStrategy::onCollaborationOutcome ( RoundType  round,
size_t  peers_in_round 
)
inlineoverridevirtual

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.

◆ onProposalRequest()

boost::optional<RoundType> iroha::ordering::UniqueCreationProposalStrategy::onProposalRequest ( RoundType  requested_round)
inlineoverridevirtual

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.

Here is the call graph for this function:

◆ shouldCreateRound()

bool iroha::ordering::UniqueCreationProposalStrategy::shouldCreateRound ( RoundType  round)
inlineoverridevirtual
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 file: