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 
12 
13 namespace iroha {
14  using PeerList = std::vector<std::shared_ptr<shared_model::interface::Peer>>;
15 
16  struct LedgerState {
17  std::shared_ptr<PeerList> ledger_peers;
18 
19  LedgerState(std::shared_ptr<PeerList> peers)
20  : ledger_peers(std::move(peers)) {}
21  LedgerState() = default;
22  };
23 } // namespace iroha
24 
25 #endif // IROHA_LEDGER_STATE_HPP
Definition: peer.hpp:48
LedgerState()=default
std::shared_ptr< PeerList > ledger_peers
Definition: ledger_state.hpp:17
Definition: block_query.hpp:16
Definition: ledger_state.hpp:16
LedgerState(std::shared_ptr< PeerList > peers)
Definition: ledger_state.hpp:19
std::vector< std::shared_ptr< shared_model::interface::Peer >> PeerList
Definition: ledger_state.hpp:14