hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
block.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_BLOCK_HPP
7 #define IROHA_SHARED_MODEL_BLOCK_HPP
8 
9 #include "common/cloneable.hpp"
12 
13 namespace shared_model {
14  namespace interface {
15 
16  class Block : public Signable<Block>, public Cloneable<Block> {
17  public:
21  virtual types::HeightType height() const = 0;
22 
26  virtual const types::HashType &prevHash() const = 0;
27 
32 
37  rejected_transactions_hashes() const = 0;
38 
39  std::string toString() const override;
40  };
41 
42  } // namespace interface
43 } // namespace shared_model
44 
45 #endif // IROHA_SHARED_MODEL_BLOCK_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:48
virtual interface::types::HashCollectionType rejected_transactions_hashes() const =0
Definition: hash.hpp:18
Definition: signable.hpp:31
Definition: cloneable.hpp:33
Definition: block.hpp:16
virtual types::TransactionsCollectionType transactions() const =0
std::string toString() const override
Definition: block.cpp:14
virtual const types::HashType & prevHash() const =0
boost::any_range< HashType, boost::forward_traversal_tag, const HashType & > HashCollectionType
Type of hash collection.
Definition: range_types.hpp:36
Definition: command_executor.hpp:13
boost::any_range< Transaction, boost::random_access_traversal_tag, Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29
virtual types::HeightType height() const =0