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 
15 
16 namespace iroha {
17  namespace ametsuchi {
18 
19  class WsvQuery;
20 
24  class PeerQueryWsv : public PeerQuery {
25  public:
26  explicit PeerQueryWsv(std::shared_ptr<WsvQuery> wsv);
27 
32  boost::optional<std::vector<wPeer>> getLedgerPeers() override;
33 
38  boost::optional<PeerQuery::wPeer> getLedgerPeerByPublicKey(
39  shared_model::interface::types::PublicKeyHexStringView public_key)
40  const override;
41 
42  private:
43  std::shared_ptr<WsvQuery> wsv_;
44  };
45 
46  } // namespace ametsuchi
47 } // namespace iroha
48 #endif // IROHA_PEER_QUERY_WSV_HPP
Definition: block_query.hpp:17
Definition: peer_query.hpp:28
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
boost::optional< PeerQuery::wPeer > getLedgerPeerByPublicKey(shared_model::interface::types::PublicKeyHexStringView public_key) const override
Definition: peer_query_wsv.cpp:23
Definition: block_query.hpp:15
Definition: peer_query_wsv.hpp:24