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< ClusterOrderinggetOrdering (const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> peers) 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)

Member Function Documentation

boost::optional< ClusterOrdering > iroha::consensus::yac::PeerOrdererImpl::getOrdering ( const YacHash hash,
std::vector< std::shared_ptr< shared_model::interface::Peer >>  peers 

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

hash- hash-object that used as seed of ordering shuffle
peers- an ordered list of peers
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: