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

#include "yac_peer_orderer.hpp"

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

Public Member Functions

virtual boost::optional< ClusterOrderinggetInitialOrdering ()=0
 
virtual boost::optional< ClusterOrderinggetOrdering (const YacHash &hash)=0
 
virtual ~YacPeerOrderer ()=default
 

Detailed Description

Interface responsible for creating order for yac consensus

Constructor & Destructor Documentation

virtual iroha::consensus::yac::YacPeerOrderer::~YacPeerOrderer ( )
virtualdefault

Member Function Documentation

virtual boost::optional<ClusterOrdering> iroha::consensus::yac::YacPeerOrderer::getInitialOrdering ( )
pure virtual

Provide initial order for voting, useful when consensus initialized, bot not voted before.

Returns
ordering, like in ledger

Implemented in iroha::consensus::yac::PeerOrdererImpl.

virtual boost::optional<ClusterOrdering> iroha::consensus::yac::YacPeerOrderer::getOrdering ( const YacHash hash)
pure virtual

Provide order of peers based on hash and initial order of peers

Parameters
hash- hash-object that used as seed of ordering shuffle
Returns
shuffled cluster order

Implemented in iroha::consensus::yac::PeerOrdererImpl.


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