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 
11 #include "queries.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class GetBlock final : public CopyableProto<interface::GetBlock,
16  iroha::protocol::Query,
17  GetBlock> {
18  public:
19  template <typename QueryType>
20  explicit GetBlock(QueryType &&query);
21 
22  GetBlock(const GetBlock &o);
23 
24  GetBlock(GetBlock &&o) noexcept;
25 
26  interface::types::HeightType height() const override;
27 
28  private:
29  // ------------------------------| fields |-------------------------------
30  const iroha::protocol::GetBlock &get_block_;
31  };
32 
33  } // namespace proto
34 } // namespace shared_model
35 
36 #endif // IROHA_PROTO_GET_BLOCK_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:39
interface::types::HeightType height() const override
Definition: proto_get_block.cpp:24
GetBlock(QueryType &&query)
Definition: proto_get_block.cpp:12
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
Definition: proto_get_block.hpp:15