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
16  : public TrivialProto<interface::GetBlock, iroha::protocol::Query> {
17  public:
18  template <typename QueryType>
19  explicit GetBlock(QueryType &&query);
20 
21  GetBlock(const GetBlock &o);
22 
23  GetBlock(GetBlock &&o) noexcept;
24 
25  interface::types::HeightType height() const override;
26 
27  private:
28  // ------------------------------| fields |-------------------------------
29  const iroha::protocol::GetBlock &get_block_;
30  };
31 
32  } // namespace proto
33 } // namespace shared_model
34 
35 #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:24
GetBlock(QueryType &&query)
Definition: proto_get_block.cpp:12
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12
Definition: proto_get_block.hpp:15