#include <protocol_factory.hpp>
|
| ProtocolFactory (libp2p::Host &host, const application::AppConfiguration &app_config, const application::ChainSpec &chain_spec, const OwnPeerInfo &own_info, std::shared_ptr< boost::asio::io_context > io_context, std::shared_ptr< crypto::Hasher > hasher, std::shared_ptr< StreamEngine > stream_engine, std::shared_ptr< primitives::events::ExtrinsicSubscriptionEngine > extrinsic_events_engine, std::shared_ptr< subscription::ExtrinsicEventKeyRepository > ext_event_key_repo, std::shared_ptr< ReputationRepository > reputation_repository, std::shared_ptr< libp2p::basic::Scheduler > scheduler) |
|
void | setBlockTree (const std::shared_ptr< blockchain::BlockTree > &block_tree) |
|
void | setBabe (const std::shared_ptr< consensus::babe::Babe > &babe) |
|
void | setGrandpaObserver (const std::shared_ptr< consensus::grandpa::GrandpaObserver > &grandpa_observer) |
|
void | setExtrinsicObserver (const std::shared_ptr< ExtrinsicObserver > &extrinsic_observer) |
|
void | setCollactionObserver (std::shared_ptr< CollationObserver > const &collation_observer) |
|
void | setStateObserver (const std::shared_ptr< StateProtocolObserver > &state_observer) |
|
void | setReqCollationObserver (std::shared_ptr< ReqCollationObserver > const &req_collation_observer) |
|
void | setSyncObserver (const std::shared_ptr< SyncProtocolObserver > &sync_observer) |
|
void | setPeerManager (const std::shared_ptr< PeerManager > &peer_manager) |
|
std::shared_ptr< BlockAnnounceProtocol > | makeBlockAnnounceProtocol () const |
|
std::shared_ptr< GrandpaProtocol > | makeGrandpaProtocol () const |
|
std::shared_ptr< PropagateTransactionsProtocol > | makePropagateTransactionsProtocol () const |
|
std::shared_ptr< StateProtocol > | makeStateProtocol () const |
|
std::shared_ptr< SyncProtocol > | makeSyncProtocol () const |
|
std::shared_ptr< CollationProtocol > | makeCollationProtocol () const |
|
std::shared_ptr< ReqCollationProtocol > | makeReqCollationProtocol () const |
|
Definition at line 27 of file protocol_factory.hpp.
kagome::network::ProtocolFactory::ProtocolFactory |
( |
libp2p::Host & |
host, |
|
|
const application::AppConfiguration & |
app_config, |
|
|
const application::ChainSpec & |
chain_spec, |
|
|
const OwnPeerInfo & |
own_info, |
|
|
std::shared_ptr< boost::asio::io_context > |
io_context, |
|
|
std::shared_ptr< crypto::Hasher > |
hasher, |
|
|
std::shared_ptr< StreamEngine > |
stream_engine, |
|
|
std::shared_ptr< primitives::events::ExtrinsicSubscriptionEngine > |
extrinsic_events_engine, |
|
|
std::shared_ptr< subscription::ExtrinsicEventKeyRepository > |
ext_event_key_repo, |
|
|
std::shared_ptr< ReputationRepository > |
reputation_repository, |
|
|
std::shared_ptr< libp2p::basic::Scheduler > |
scheduler |
|
) |
| |
std::shared_ptr< BlockAnnounceProtocol > kagome::network::ProtocolFactory::makeBlockAnnounceProtocol |
( |
| ) |
const |
std::shared_ptr< CollationProtocol > kagome::network::ProtocolFactory::makeCollationProtocol |
( |
| ) |
const |
std::shared_ptr< GrandpaProtocol > kagome::network::ProtocolFactory::makeGrandpaProtocol |
( |
| ) |
const |
std::shared_ptr< ReqCollationProtocol > kagome::network::ProtocolFactory::makeReqCollationProtocol |
( |
| ) |
const |
std::shared_ptr< StateProtocol > kagome::network::ProtocolFactory::makeStateProtocol |
( |
| ) |
const |
std::shared_ptr< SyncProtocol > kagome::network::ProtocolFactory::makeSyncProtocol |
( |
| ) |
const |
void kagome::network::ProtocolFactory::setBlockTree |
( |
const std::shared_ptr< blockchain::BlockTree > & |
block_tree | ) |
|
|
inline |
void kagome::network::ProtocolFactory::setCollactionObserver |
( |
std::shared_ptr< CollationObserver > const & |
collation_observer | ) |
|
|
inline |
void kagome::network::ProtocolFactory::setExtrinsicObserver |
( |
const std::shared_ptr< ExtrinsicObserver > & |
extrinsic_observer | ) |
|
|
inline |
void kagome::network::ProtocolFactory::setPeerManager |
( |
const std::shared_ptr< PeerManager > & |
peer_manager | ) |
|
|
inline |
void kagome::network::ProtocolFactory::setReqCollationObserver |
( |
std::shared_ptr< ReqCollationObserver > const & |
req_collation_observer | ) |
|
|
inline |
void kagome::network::ProtocolFactory::setStateObserver |
( |
const std::shared_ptr< StateProtocolObserver > & |
state_observer | ) |
|
|
inline |
void kagome::network::ProtocolFactory::setSyncObserver |
( |
const std::shared_ptr< SyncProtocolObserver > & |
sync_observer | ) |
|
|
inline |
std::weak_ptr<CollationObserver> kagome::network::ProtocolFactory::collation_observer_ |
|
private |
std::weak_ptr<ExtrinsicObserver> kagome::network::ProtocolFactory::extrinsic_observer_ |
|
private |
std::shared_ptr<crypto::Hasher> kagome::network::ProtocolFactory::hasher_ |
|
private |
libp2p::Host& kagome::network::ProtocolFactory::host_ |
|
private |
std::shared_ptr<boost::asio::io_context> kagome::network::ProtocolFactory::io_context_ |
|
private |
const OwnPeerInfo& kagome::network::ProtocolFactory::own_info_ |
|
private |
std::weak_ptr<PeerManager> kagome::network::ProtocolFactory::peer_manager_ |
|
private |
std::shared_ptr<libp2p::basic::Scheduler> kagome::network::ProtocolFactory::scheduler_ |
|
private |
std::shared_ptr<StreamEngine> kagome::network::ProtocolFactory::stream_engine_ |
|
private |
The documentation for this class was generated from the following files: