hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
unsafe_block_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_UNSAFE_BLOCK_FACTORY_HPP
7 #define IROHA_UNSAFE_BLOCK_FACTORY_HPP
8 
10 
11 namespace shared_model {
12  namespace interface {
17  public:
26  virtual std::unique_ptr<Block> unsafeCreateBlock(
27  types::HeightType height,
28  const types::HashType &prev_hash,
29  types::TimestampType created_time,
31  const interface::types::HashCollectionType &rejected_hashes) = 0;
32 
33  virtual ~UnsafeBlockFactory() = default;
34  };
35  } // namespace interface
36 } // namespace shared_model
37 
38 #endif // IROHA_UNSAFE_BLOCK_FACTORY_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:43
Definition: hash.hpp:18
virtual std::unique_ptr< Block > unsafeCreateBlock(types::HeightType height, const types::HashType &prev_hash, types::TimestampType created_time, const types::TransactionsCollectionType &txs, const interface::types::HashCollectionType &rejected_hashes)=0
Definition: unsafe_block_factory.hpp:16
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
uint64_t TimestampType
Type of timestamp.
Definition: types.hpp:64
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29