Kagome
Polkadot Runtime Engine in C++17
|
Public Member Functions | |
CollationObserverImpl (std::shared_ptr< network::PeerManager > pm, std::shared_ptr< crypto::Sr25519Provider > crypto_provider, std::shared_ptr< parachain::ParachainProcessorImpl > processor) | |
~CollationObserverImpl () override=default | |
void | onAdvertise (libp2p::peer::PeerId const &peer_id, primitives::BlockHash relay_parent) override |
void | onDeclare (libp2p::peer::PeerId const &peer_id, network::CollatorPublicKey pubkey, network::ParachainId para_id, network::Signature signature) override |
Public Member Functions inherited from kagome::network::CollationObserver | |
virtual | ~CollationObserver ()=default |
Private Attributes | |
std::shared_ptr< network::PeerManager > | pm_ |
std::shared_ptr< crypto::Sr25519Provider > | crypto_provider_ |
std::shared_ptr< parachain::ParachainProcessorImpl > | processor_ |
log::Logger | logger_ = log::createLogger("CollationObserver", "parachain") |
Definition at line 19 of file parachain_observer.cpp.
|
inline |
Definition at line 20 of file parachain_observer.cpp.
|
overridedefault |
|
inlineoverridevirtual |
Triggered when a Peer makes advertisement
peer_id | id of the peer |
para_hash | hash of the parachain block |
Implements kagome::network::CollationObserver.
Definition at line 34 of file parachain_observer.cpp.
|
inlineoverridevirtual |
Triggered when a Peer declares as a collator
Copy because verify works with non-constant value.
need to set active paras based on ViewChanged events.
Implements kagome::network::CollationObserver.
Definition at line 67 of file parachain_observer.cpp.
|
private |
Definition at line 103 of file parachain_observer.cpp.
|
private |
Definition at line 105 of file parachain_observer.cpp.
|
private |
Definition at line 102 of file parachain_observer.cpp.
|
private |
Definition at line 104 of file parachain_observer.cpp.