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

#include <block_announce_observer.hpp>

Inheritance diagram for kagome::network::BlockAnnounceObserver:
Collaboration diagram for kagome::network::BlockAnnounceObserver:

Public Member Functions

virtual ~BlockAnnounceObserver ()=default
 
virtual void onRemoteStatus (const libp2p::peer::PeerId &peer_id, const Status &remote_status)=0
 
virtual void onBlockAnnounce (const libp2p::peer::PeerId &peer_id, const BlockAnnounce &announce)=0
 
virtual void onSynchronized ()=0
 

Detailed Description

Reacts to messages, related to block announce protocol

Definition at line 18 of file block_announce_observer.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void kagome::network::BlockAnnounceObserver::onBlockAnnounce ( const libp2p::peer::PeerId &  peer_id,
const BlockAnnounce announce 
)
pure virtual

Triggered when a BlockAnnounce message arrives

Parameters
announce- arrived message

Implemented in kagome::consensus::babe::BabeImpl.

virtual void kagome::network::BlockAnnounceObserver::onRemoteStatus ( const libp2p::peer::PeerId &  peer_id,
const Status remote_status 
)
pure virtual

Triggered when a Status arrives (as handshake of block announce protocol)

Parameters
status- remote status

Implemented in kagome::consensus::babe::BabeImpl.

virtual void kagome::network::BlockAnnounceObserver::onSynchronized ( )
pure virtual

Triggered when node is validator and received status from another validator node

Implemented in kagome::consensus::babe::BabeImpl.


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