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 
11 
12 namespace shared_model {
13  namespace interface {
14 
15  class Block : public Signable<Block> {
16  public:
20  virtual types::HeightType height() const = 0;
21 
25  virtual const types::HashType &prevHash() const = 0;
29  virtual types::TransactionsNumberType txsNumber() const = 0;
30 
35 
40  rejected_transactions_hashes() const = 0;
41 
42  std::string toString() const override;
43  };
44 
45  } // namespace interface
46 } // namespace shared_model
47 
48 #endif // IROHA_SHARED_MODEL_BLOCK_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:41
virtual interface::types::HashCollectionType rejected_transactions_hashes() const =0
Definition: hash.hpp:18
Definition: signable.hpp:35
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
Definition: block.hpp:15
virtual types::TransactionsCollectionType transactions() const =0
boost::any_range< HashType, boost::forward_traversal_tag, const HashType & > HashCollectionType
Type of hash collection.
Definition: range_types.hpp:38
virtual types::TransactionsNumberType txsNumber() const =0
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:79
std::string toString() const override
Definition: block.cpp:14
virtual const types::HashType & prevHash() const =0
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