hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
get_block.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_GET_BLOCK_HPP
7 #define IROHA_SHARED_MODEL_GET_BLOCK_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14  class GetBlock : public ModelPrimitive<GetBlock> {
15  public:
20  virtual types::HeightType height() const = 0;
21 
22  std::string toString() const override;
23 
24  bool operator==(const ModelType &rhs) const override;
25  };
26  } // namespace interface
27 } // namespace shared_model
28 #endif // IROHA_SHARED_MODEL_GET_BLOCK_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:39
virtual types::HeightType height() const =0
std::string toString() const override
Definition: get_block.cpp:11
bool operator==(const ModelType &rhs) const override
Definition: get_block.cpp:18
Definition: get_block.hpp:14
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12