#include "yac_peer_orderer.hpp"


Public Member Functions | |
| virtual std::optional< ClusterOrdering > | getOrdering (const YacHash &hash, std::vector< std::shared_ptr< shared_model::interface::Peer >> const &peers)=0 |
| virtual | ~YacPeerOrderer ()=default |
Interface responsible for creating order for yac consensus
|
virtualdefault |
|
pure virtual |
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 |
Implemented in iroha::consensus::yac::PeerOrdererImpl.