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

std::optional< ClusterOrderinggetOrdering (const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> const &peers) override
 
- Public Member Functions inherited from iroha::consensus::yac::YacPeerOrderer
virtual ~YacPeerOrderer ()=default
 

Member Function Documentation

◆ getOrdering()

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

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

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

Here is the call graph for this function:

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