Kagome
Polkadot Runtime Engine in C++17
kagome::network::CollationObserver Struct Referenceabstract

#include <collation_observer.hpp>

Inheritance diagram for kagome::network::CollationObserver:
Collaboration diagram for kagome::network::CollationObserver:

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
 

Detailed Description

Reacts to messages, related to collation protocol

Definition at line 20 of file collation_observer.hpp.

Constructor & Destructor Documentation

virtual kagome::network::CollationObserver::~CollationObserver ( )
virtualdefault

Member Function Documentation

virtual void kagome::network::CollationObserver::onAdvertise ( libp2p::peer::PeerId const &  peer_id,
primitives::BlockHash  para_hash 
)
pure virtual

Triggered when a Peer makes advertisement

Parameters
peer_idid of the peer
para_hashhash of the parachain block

Implemented in kagome::parachain::ParachainObserverImpl, and kagome::observers::CollationObserverImpl.

virtual void kagome::network::CollationObserver::onDeclare ( libp2p::peer::PeerId const &  peer_id,
CollatorPublicKey  pubkey,
ParachainId  para_id,
Signature  signature 
)
pure virtual

Triggered when a Peer declares as a collator

Parameters
pubkeyPeerId of the peer.
para_idPublic key of the collator.
signatureParachain Id. Signature of the collator using the PeerId of the collators node.

Implemented in kagome::observers::CollationObserverImpl, and kagome::parachain::ParachainObserverImpl.


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