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

observes incoming catch-up messages. Abstraction of a network. More...

#include <catch_up_observer.hpp>

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

Public Member Functions

virtual ~CatchUpObserver ()=default
 
virtual void onCatchUpRequest (const libp2p::peer::PeerId &peer_id, const network::CatchUpRequest &msg)=0
 
virtual void onCatchUpResponse (const libp2p::peer::PeerId &peer_id, const network::CatchUpResponse &msg)=0
 

Detailed Description

observes incoming catch-up messages. Abstraction of a network.

Definition at line 19 of file catch_up_observer.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void kagome::consensus::grandpa::CatchUpObserver::onCatchUpRequest ( const libp2p::peer::PeerId &  peer_id,
const network::CatchUpRequest msg 
)
pure virtual

Handler of grandpa catch-up-request messages

Parameters
msgcatch-up-request messages

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

virtual void kagome::consensus::grandpa::CatchUpObserver::onCatchUpResponse ( const libp2p::peer::PeerId &  peer_id,
const network::CatchUpResponse msg 
)
pure virtual

Handler of grandpa catch-up-response messages

Parameters
msgcatch-up-response messages

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


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