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 <memory>
10 
13 
14 namespace iroha {
15  using PeerList = std::vector<std::shared_ptr<shared_model::interface::Peer>>;
16 
17  struct LedgerState {
18  std::shared_ptr<PeerList> ledger_peers;
20 
21  LedgerState(std::shared_ptr<PeerList> peers,
23  : ledger_peers(std::move(peers)), height(height) {}
24  };
25 } // namespace iroha
26 
27 #endif // IROHA_LEDGER_STATE_HPP
uint64_t HeightType
Type of height (for Block, Proposal etc)
Definition: types.hpp:39
shared_model::interface::types::HeightType height
Definition: ledger_state.hpp:19
LedgerState(std::shared_ptr< PeerList > peers, shared_model::interface::types::HeightType height)
Definition: ledger_state.hpp:21
Definition: peer.hpp:48
std::shared_ptr< PeerList > ledger_peers
Definition: ledger_state.hpp:18
Definition: block_query.hpp:16
Definition: ledger_state.hpp:17
std::vector< std::shared_ptr< shared_model::interface::Peer >> PeerList
Definition: ledger_state.hpp:15