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< ClusterOrderinggetOrdering (const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> peers)=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::getOrdering ( const YacHash hash,
std::vector< std::shared_ptr< shared_model::interface::Peer >>  peers 
)
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
peers- an ordered list of peers
Returns
shuffled cluster order

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


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