6 #ifndef IROHA_CONSENSUS_INIT_HPP 7 #define IROHA_CONSENSUS_INIT_HPP 29 class GenericClientFactory;
36 std::shared_ptr<YacGate> initConsensusGate(
39 std::shared_ptr<ametsuchi::PeerQueryFactory> peer_query_factory,
40 boost::optional<shared_model::interface::types::PeerList>
42 std::shared_ptr<const LedgerState> ledger_state,
43 std::shared_ptr<simulator::BlockCreator> block_creator,
44 std::shared_ptr<network::BlockLoader> block_loader,
46 std::shared_ptr<consensus::ConsensusResultCache> block_cache,
47 std::chrono::milliseconds vote_delay_milliseconds,
53 std::chrono::milliseconds delay,
54 std::shared_ptr<iroha::network::GenericClientFactory>
57 std::shared_ptr<NetworkImpl> getConsensusNetwork()
const;
60 auto createTimer(std::chrono::milliseconds delay_milliseconds);
62 bool initialized_{
false};
63 std::shared_ptr<NetworkImpl> consensus_network_;
69 #endif // IROHA_CONSENSUS_INIT_HPP
Definition: consensus_init.hpp:34
Definition: keypair.hpp:19
Definition: block_query.hpp:15
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition: logger_manager_fwd.hpp:14
ConsistencyModel
Definition: consistency_model.hpp:13
Definition: on_demand_ordering_init.hpp:44