hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_block.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_BLOCK_HPP
7 #define IROHA_PROTO_GET_BLOCK_HPP
8 
10 
11 #include "queries.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class GetBlock final : public interface::GetBlock {
16  public:
17  explicit GetBlock(iroha::protocol::Query &query);
18 
19  interface::types::HeightType height() const override;
20 
21  private:
22  // ------------------------------| fields |-------------------------------
23  const iroha::protocol::GetBlock &get_block_;
24  };
25 
26  } // namespace proto
27 } // namespace shared_model
28 
29 #endif // IROHA_PROTO_GET_BLOCK_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:43
interface::types::HeightType height() const override
Definition: proto_get_block.cpp:14
GetBlock(iroha::protocol::Query &query)
Definition: proto_get_block.cpp:11
Definition: get_block.hpp:14
Definition: command_executor.hpp:12
Definition: proto_get_block.hpp:15