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

#include "peer_orderer_impl.hpp"

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

Public Member Functions

 PeerOrdererImpl (std::shared_ptr< ametsuchi::PeerQueryFactory > peer_query_factory)
 
boost::optional< ClusterOrderinggetInitialOrdering () override
 
boost::optional< ClusterOrderinggetOrdering (const YacHash &hash) override
 
- Public Member Functions inherited from iroha::consensus::yac::YacPeerOrderer
virtual ~YacPeerOrderer ()=default
 

Constructor & Destructor Documentation

iroha::consensus::yac::PeerOrdererImpl::PeerOrdererImpl ( std::shared_ptr< ametsuchi::PeerQueryFactory peer_query_factory)
explicit

Member Function Documentation

boost::optional< ClusterOrdering > iroha::consensus::yac::PeerOrdererImpl::getInitialOrdering ( )
overridevirtual

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

Returns
ordering, like in ledger

Implements iroha::consensus::yac::YacPeerOrderer.

Here is the call graph for this function:

boost::optional< ClusterOrdering > iroha::consensus::yac::PeerOrdererImpl::getOrdering ( const YacHash hash)
overridevirtual

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

Implements iroha::consensus::yac::YacPeerOrderer.

Here is the call graph for this function:


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