hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
ledger_state.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_LEDGER_STATE_HPP
7 #define IROHA_LEDGER_STATE_HPP
8 
9 #include "cryptography/hash.hpp"
12 
13 namespace iroha {
14  struct TopBlockInfo {
17 
20  : height(height), top_hash(std::move(top_hash)) {}
21  };
22 
23  struct LedgerState {
26 
30  : ledger_peers(std::move(peers)),
31  top_block_info(height, std::move(top_hash)) {}
32  };
33 } // namespace iroha
34 
35 #endif // IROHA_LEDGER_STATE_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:43
shared_model::interface::types::HeightType height
Definition: ledger_state.hpp:15
Definition: hash.hpp:18
TopBlockInfo top_block_info
Definition: ledger_state.hpp:25
Definition: peer.hpp:48
Definition: ledger_state.hpp:14
Definition: block_query.hpp:14
shared_model::crypto::Hash top_hash
Definition: ledger_state.hpp:16
Definition: ledger_state.hpp:23
shared_model::interface::types::PeerList ledger_peers
Definition: ledger_state.hpp:24
LedgerState(shared_model::interface::types::PeerList peers, shared_model::interface::types::HeightType height, shared_model::crypto::Hash top_hash)
Definition: ledger_state.hpp:27
std::vector< std::shared_ptr< shared_model::interface::Peer >> PeerList
Type of peers collection.
Definition: types.hpp:90
TopBlockInfo(shared_model::interface::types::HeightType height, shared_model::crypto::Hash top_hash)
Definition: ledger_state.hpp:18