hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_query_wsv.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_QUERY_WSV_HPP
7 #define IROHA_PEER_QUERY_WSV_HPP
8 
10 
11 #include <memory>
12 #include <vector>
13 
14 namespace iroha {
15  namespace ametsuchi {
16 
17  class WsvQuery;
18 
22  class PeerQueryWsv : public PeerQuery {
23  public:
24  explicit PeerQueryWsv(std::shared_ptr<WsvQuery> wsv);
25 
30  boost::optional<std::vector<wPeer>> getLedgerPeers() override;
31 
32  private:
33  std::shared_ptr<WsvQuery> wsv_;
34  };
35 
36  } // namespace ametsuchi
37 } // namespace iroha
38 #endif // IROHA_PEER_QUERY_WSV_HPP
Definition: peer_query.hpp:25
boost::optional< std::vector< wPeer > > getLedgerPeers() override
Definition: peer_query_wsv.cpp:19
PeerQueryWsv(std::shared_ptr< WsvQuery > wsv)
Definition: peer_query_wsv.cpp:15
Definition: block_query.hpp:16
Definition: peer_query_wsv.hpp:22