Kagome
Polkadot Runtime Engine in C++17
|
#include <collation_observer.hpp>
Public Member Functions | |
virtual | ~CollationObserver ()=default |
virtual void | onAdvertise (libp2p::peer::PeerId const &peer_id, primitives::BlockHash para_hash)=0 |
virtual void | onDeclare (libp2p::peer::PeerId const &peer_id, CollatorPublicKey pubkey, ParachainId para_id, Signature signature)=0 |
Reacts to messages, related to collation protocol
Definition at line 20 of file collation_observer.hpp.
|
virtualdefault |
|
pure virtual |
Triggered when a Peer makes advertisement
peer_id | id of the peer |
para_hash | hash of the parachain block |
Implemented in kagome::parachain::ParachainObserverImpl, and kagome::observers::CollationObserverImpl.
|
pure virtual |
Triggered when a Peer declares as a collator
pubkey | PeerId of the peer. |
para_id | Public key of the collator. |
signature | Parachain Id. Signature of the collator using the PeerId of the collators node. |
Implemented in kagome::observers::CollationObserverImpl, and kagome::parachain::ParachainObserverImpl.