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 
13 
14 namespace iroha {
15  namespace network {
20  private:
27  auto createService(
28  std::shared_ptr<ametsuchi::BlockQueryFactory> block_query_factory,
29  std::shared_ptr<consensus::ConsensusResultCache> block_cache);
30 
37  auto createLoader(
38  std::shared_ptr<ametsuchi::PeerQueryFactory> peer_query_factory);
39 
40  public:
48  std::shared_ptr<BlockLoader> initBlockLoader(
49  std::shared_ptr<ametsuchi::PeerQueryFactory> peer_query_factory,
50  std::shared_ptr<ametsuchi::BlockQueryFactory> block_query_factory,
51  std::shared_ptr<consensus::ConsensusResultCache> block_cache);
52 
53  std::shared_ptr<BlockLoaderImpl> loader;
54  std::shared_ptr<BlockLoaderService> service;
55  };
56  } // namespace network
57 } // namespace iroha
58 #endif // IROHA_BLOCK_LOADER_INIT_HPP
Definition: block_loader_init.hpp:19
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)
Definition: block_loader_init.cpp:30
std::shared_ptr< BlockLoaderService > service
Definition: block_loader_init.hpp:54
Definition: block_query.hpp:16
std::shared_ptr< BlockLoaderImpl > loader
Definition: block_loader_init.hpp:53