hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::consensus::yac::BufferedCleanupStrategy Class Reference

#include "buffered_cleanup_strategy.hpp"

Inheritance diagram for iroha::consensus::yac::BufferedCleanupStrategy:
Inheritance graph
Collaboration diagram for iroha::consensus::yac::BufferedCleanupStrategy:
Collaboration graph

Public Types

using RoundType = Round
 
- Public Types inherited from iroha::consensus::yac::CleanupStrategy
using RoundsType = std::vector< Round >
 

Public Member Functions

boost::optional< CleanupStrategy::RoundsTypefinalize (RoundType consensus_round, Answer answer) override
 
bool shouldCreateRound (const RoundType &round) override
 
- Public Member Functions inherited from iroha::consensus::yac::CleanupStrategy
virtual ~CleanupStrategy ()=default
 

Member Typedef Documentation

Member Function Documentation

boost::optional< CleanupStrategy::RoundsType > BufferedCleanupStrategy::finalize ( RoundType  consensus_round,
Answer  answer 
)
overridevirtual

The method finalizes passed round. On Commit message it purges last reject round if commit is greater.

Parameters
consensus_round- finalized round of the consensus
answer- the output of the round
Returns
rounds to be removed, if any.

Implements iroha::consensus::yac::CleanupStrategy.

bool BufferedCleanupStrategy::shouldCreateRound ( const RoundType round)
overridevirtual

The method checks whether we should add a new round

Parameters
round- round for creation
Returns
true if round should be created

Implements iroha::consensus::yac::CleanupStrategy.


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