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;
30  virtual types::TransactionsNumberType txsNumber() const = 0;
31 
36 
41  rejected_transactions_hashes() const = 0;
42 
43  std::string toString() const override;
44  };
45 
46  } // namespace interface
47 } // namespace shared_model
48 
49 #endif // IROHA_SHARED_MODEL_BLOCK_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:43
virtual interface::types::HashCollectionType rejected_transactions_hashes() const =0
Definition: hash.hpp:18
Definition: signable.hpp:35
Definition: cloneable.hpp:33
Definition: block.hpp:16
virtual types::TransactionsCollectionType transactions() const =0
virtual types::TransactionsNumberType txsNumber() const =0
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
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:12
virtual types::HeightType height() const =0
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29