Kagome
Polkadot Runtime Engine in C++17
kagome::parachain::ParachainObserverImpl Struct Referencefinal

#include <parachain_observer.hpp>

Inheritance diagram for kagome::parachain::ParachainObserverImpl:
Collaboration diagram for kagome::parachain::ParachainObserverImpl:

Public Member Functions

 ParachainObserverImpl (std::shared_ptr< network::PeerManager > pm, std::shared_ptr< crypto::Sr25519Provider > crypto_provider, std::shared_ptr< parachain::ParachainProcessorImpl > processor)
 
 ~ParachainObserverImpl ()=default
 
void onAdvertise (libp2p::peer::PeerId const &peer_id, primitives::BlockHash para_hash) override
 collation protocol observer More...
 
void onDeclare (libp2p::peer::PeerId const &peer_id, network::CollatorPublicKey pubkey, network::ParachainId para_id, network::Signature signature) override
 
outcome::result< network::CollationFetchingResponseOnCollationRequest (network::CollationFetchingRequest request) override
 fetch collation protocol observer More...
 
- Public Member Functions inherited from kagome::network::CollationObserver
virtual ~CollationObserver ()=default
 
- Public Member Functions inherited from kagome::network::ReqCollationObserver
virtual ~ReqCollationObserver ()=default
 

Private Attributes

std::shared_ptr< observers::CollationObserverImplcollation_observer_impl_
 
std::shared_ptr< observers::ReqCollationObserverImplreq_collation_observer_impl_
 
std::shared_ptr< parachain::ParachainProcessorImplprocessor_
 

Detailed Description

Definition at line 35 of file parachain_observer.hpp.

Constructor & Destructor Documentation

kagome::parachain::ParachainObserverImpl::ParachainObserverImpl ( std::shared_ptr< network::PeerManager pm,
std::shared_ptr< crypto::Sr25519Provider crypto_provider,
std::shared_ptr< parachain::ParachainProcessorImpl processor 
)

Definition at line 129 of file parachain_observer.cpp.

kagome::parachain::ParachainObserverImpl::~ParachainObserverImpl ( )
default

Member Function Documentation

void kagome::parachain::ParachainObserverImpl::onAdvertise ( libp2p::peer::PeerId const &  peer_id,
primitives::BlockHash  para_hash 
)
overridevirtual

collation protocol observer

Implements kagome::network::CollationObserver.

Definition at line 146 of file parachain_observer.cpp.

outcome::result< network::CollationFetchingResponse > kagome::parachain::ParachainObserverImpl::OnCollationRequest ( network::CollationFetchingRequest  request)
overridevirtual

fetch collation protocol observer

Implements kagome::network::ReqCollationObserver.

Definition at line 160 of file parachain_observer.cpp.

void kagome::parachain::ParachainObserverImpl::onDeclare ( libp2p::peer::PeerId const &  peer_id,
network::CollatorPublicKey  pubkey,
network::ParachainId  para_id,
network::Signature  signature 
)
overridevirtual

Triggered when a Peer declares as a collator

Implements kagome::network::CollationObserver.

Definition at line 151 of file parachain_observer.cpp.

Member Data Documentation

std::shared_ptr<observers::CollationObserverImpl> kagome::parachain::ParachainObserverImpl::collation_observer_impl_
private

Definition at line 56 of file parachain_observer.hpp.

std::shared_ptr<parachain::ParachainProcessorImpl> kagome::parachain::ParachainObserverImpl::processor_
private

Definition at line 59 of file parachain_observer.hpp.

std::shared_ptr<observers::ReqCollationObserverImpl> kagome::parachain::ParachainObserverImpl::req_collation_observer_impl_
private

Definition at line 58 of file parachain_observer.hpp.


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