hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PeerQuery Class Referenceabstract

#include "peer_query.hpp"

Inheritance diagram for iroha::ametsuchi::PeerQuery:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::PeerQuery:
Collaboration graph

Public Member Functions

virtual boost::optional< std::vector< wPeer > > getLedgerPeers ()=0
 
virtual ~PeerQuery ()=default
 

Protected Types

using wPeer = std::shared_ptr< shared_model::interface::Peer >
 

Detailed Description

Interface provide clean dependency for getting peers in system

Member Typedef Documentation

Constructor & Destructor Documentation

virtual iroha::ametsuchi::PeerQuery::~PeerQuery ( )
virtualdefault

Member Function Documentation

virtual boost::optional<std::vector<wPeer> > iroha::ametsuchi::PeerQuery::getLedgerPeers ( )
pure virtual

Fetch peers stored in ledger

Returns
list of peers in insertion to ledger order

Implemented in iroha::ametsuchi::PeerQueryWsv.

Here is the caller graph for this function:


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