hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::network::BlockLoaderInit Class Reference

#include "block_loader_init.hpp"

Collaboration diagram for iroha::network::BlockLoaderInit:
Collaboration graph

Public Member Functions

std::shared_ptr< BlockLoaderinitBlockLoader (std::shared_ptr< ametsuchi::PeerQueryFactory > peer_query_factory, std::shared_ptr< ametsuchi::BlockQueryFactory > block_query_factory, std::shared_ptr< consensus::ConsensusResultCache > block_cache)
 

Public Attributes

std::shared_ptr< BlockLoaderImplloader
 
std::shared_ptr< BlockLoaderServiceservice
 

Detailed Description

Initialization context of Block loader: loader itself and service

Member Function Documentation

std::shared_ptr< BlockLoader > BlockLoaderInit::initBlockLoader ( std::shared_ptr< ametsuchi::PeerQueryFactory peer_query_factory,
std::shared_ptr< ametsuchi::BlockQueryFactory block_query_factory,
std::shared_ptr< consensus::ConsensusResultCache block_cache 
)

Initialize block loader with service and loader

Parameters
peer_query_factory- factory to peer query component
block_query_factory- factory to block query component
block_cacheused to retrieve last block put by consensus
Returns
initialized service

Here is the caller graph for this function:

Member Data Documentation

std::shared_ptr<BlockLoaderImpl> iroha::network::BlockLoaderInit::loader
std::shared_ptr<BlockLoaderService> iroha::network::BlockLoaderInit::service

The documentation for this class was generated from the following files: