hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
block_loader_init.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_BLOCK_LOADER_INIT_HPP
7 #define IROHA_BLOCK_LOADER_INIT_HPP
8 
11 #include "logger/logger_fwd.hpp"
16 
17 namespace iroha {
18  namespace network {
19  class GenericClientFactory;
20 
25  public:
36  std::shared_ptr<BlockLoader> initBlockLoader(
37  // TODO 30.01.2019 lebdron: IR-264 Remove PeerQueryFactory
38  std::shared_ptr<ametsuchi::PeerQueryFactory> peer_query_factory,
39  std::shared_ptr<ametsuchi::BlockQueryFactory> block_query_factory,
40  std::shared_ptr<consensus::ConsensusResultCache> block_cache,
41  std::shared_ptr<shared_model::validation::ValidatorsConfig>
42  validators_config,
43  const logger::LoggerManagerTreePtr &loader_log_manager,
44  std::shared_ptr<iroha::network::GenericClientFactory> client_factory);
45 
46  std::shared_ptr<BlockLoaderImpl> loader;
47  std::shared_ptr<BlockLoaderService> service;
48  };
49  } // namespace network
50 } // namespace iroha
51 #endif // IROHA_BLOCK_LOADER_INIT_HPP
Definition: block_loader_init.hpp:24
std::shared_ptr< BlockLoaderService > service
Definition: block_loader_init.hpp:47
Definition: block_query.hpp:15
std::shared_ptr< BlockLoaderImpl > loader
Definition: block_loader_init.hpp:46
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition: logger_manager_fwd.hpp:14
std::shared_ptr< BlockLoader > initBlockLoader(std::shared_ptr< ametsuchi::PeerQueryFactory > peer_query_factory, std::shared_ptr< ametsuchi::BlockQueryFactory > block_query_factory, std::shared_ptr< consensus::ConsensusResultCache > block_cache, std::shared_ptr< shared_model::validation::ValidatorsConfig > validators_config, const logger::LoggerManagerTreePtr &loader_log_manager, std::shared_ptr< iroha::network::GenericClientFactory > client_factory)
Definition: block_loader_init.cpp:65