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

#include <grandpa.hpp>

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

Public Member Functions

virtual ~Grandpa ()=default
 
virtual void tryExecuteNextRound (const std::shared_ptr< VotingRound > &prev_round)=0
 
virtual void updateNextRound (RoundNumber round_number)=0
 

Detailed Description

Interface for launching new grandpa rounds. See more details in kagome::consensus::grandpa::GrandpaImpl

Definition at line 20 of file grandpa.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void kagome::consensus::grandpa::Grandpa::tryExecuteNextRound ( const std::shared_ptr< VotingRound > &  prev_round)
pure virtual

Tries to execute the next round Round may not be executed if prev round is not equal to our current round

Parameters
prev_round- round for which tries to execute the next one

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

virtual void kagome::consensus::grandpa::Grandpa::updateNextRound ( RoundNumber  round_number)
pure virtual

Force update for the round. Next round to the provided one will be checked and updated to the new prevote ghost (if any), round estimate (if any), finalized block (if any) and completability

Parameters
round_numberthe round number the following to which is updated

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


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