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

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

#include <round_observer.hpp>

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

Public Member Functions

virtual ~RoundObserver ()=default
 
virtual void onVoteMessage (const libp2p::peer::PeerId &peer_id, const VoteMessage &msg)=0
 
virtual void onCommitMessage (const libp2p::peer::PeerId &peer_id, const network::FullCommitMessage &msg)=0
 

Detailed Description

observes incoming messages. Abstraction of a network.

Definition at line 22 of file round_observer.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void kagome::consensus::grandpa::RoundObserver::onCommitMessage ( const libp2p::peer::PeerId &  peer_id,
const network::FullCommitMessage msg 
)
pure virtual

Handler of grandpa finalization messages

Parameters
peer_idfinalization sender
ffinalization message

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

virtual void kagome::consensus::grandpa::RoundObserver::onVoteMessage ( const libp2p::peer::PeerId &  peer_id,
const VoteMessage msg 
)
pure virtual

Handler of grandpa vote messages

Parameters
peer_idvote owner
msgvote message

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