Kagome
Polkadot Runtime Engine in C++17
|
#include <parachain_observer.hpp>
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::CollationFetchingResponse > | OnCollationRequest (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::CollationObserverImpl > | collation_observer_impl_ |
std::shared_ptr< observers::ReqCollationObserverImpl > | req_collation_observer_impl_ |
std::shared_ptr< parachain::ParachainProcessorImpl > | processor_ |
Definition at line 35 of file parachain_observer.hpp.
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.
|
default |
|
overridevirtual |
collation protocol observer
Implements kagome::network::CollationObserver.
Definition at line 146 of file parachain_observer.cpp.
|
overridevirtual |
fetch collation protocol observer
Implements kagome::network::ReqCollationObserver.
Definition at line 160 of file parachain_observer.cpp.
|
overridevirtual |
Triggered when a Peer declares as a collator
Implements kagome::network::CollationObserver.
Definition at line 151 of file parachain_observer.cpp.
|
private |
Definition at line 56 of file parachain_observer.hpp.
|
private |
Definition at line 59 of file parachain_observer.hpp.
|
private |
Definition at line 58 of file parachain_observer.hpp.