hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_query.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_QUERY_HPP
7 #define IROHA_PEER_QUERY_HPP
8 
9 #include <boost/optional.hpp>
10 #include <memory>
11 #include <vector>
12 
13 namespace shared_model {
14  namespace interface {
15  class Peer;
16  } // namespace interface
17 } // namespace shared_model
18 
19 namespace iroha {
20  namespace ametsuchi {
21 
25  class PeerQuery {
26  protected:
27  using wPeer = std::shared_ptr<shared_model::interface::Peer>;
28 
29  public:
30  // TODO andrei 17.10.18 IR-1764 Make PeerQuery::getLedgerPeers const
31 
36  virtual boost::optional<std::vector<wPeer>> getLedgerPeers() = 0;
37 
38  virtual ~PeerQuery() = default;
39  };
40 
41  } // namespace ametsuchi
42 } // namespace iroha
43 #endif // IROHA_PEER_QUERY_HPP
Definition: peer_query.hpp:25
Definition: block_query.hpp:16
std::shared_ptr< shared_model::interface::Peer > wPeer
Definition: peer_query.hpp:27
Definition: command_executor.hpp:12