Kagome
Polkadot Runtime Engine in C++17
kagome::consensus::grandpa::NeighborObserver Class Referenceabstract

observes incoming neighbor messages. Abstraction of a network. More...

#include <neighbor_observer.hpp>

Inheritance diagram for kagome::consensus::grandpa::NeighborObserver:
Collaboration diagram for kagome::consensus::grandpa::NeighborObserver:

Public Member Functions

virtual ~NeighborObserver ()=default
 
virtual void onNeighborMessage (const libp2p::peer::PeerId &peer_id, const network::GrandpaNeighborMessage &msg)=0
 

Detailed Description

observes incoming neighbor messages. Abstraction of a network.

Definition at line 19 of file neighbor_observer.hpp.

Constructor & Destructor Documentation

virtual kagome::consensus::grandpa::NeighborObserver::~NeighborObserver ( )
virtualdefault

Member Function Documentation

virtual void kagome::consensus::grandpa::NeighborObserver::onNeighborMessage ( const libp2p::peer::PeerId &  peer_id,
const network::GrandpaNeighborMessage msg 
)
pure virtual

Handler of grandpa neighbor messages

Parameters
msgneighbor messages

Implemented in kagome::consensus::grandpa::GrandpaImpl.


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