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

observes justification assigned to syncing blocks. More...

#include <justification_observer.hpp>

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

Public Member Functions

virtual ~JustificationObserver ()=default
 
virtual outcome::result< void > applyJustification (const primitives::BlockInfo &block_info, const GrandpaJustification &justification)=0
 

Detailed Description

observes justification assigned to syncing blocks.

Definition at line 18 of file justification_observer.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual outcome::result<void> kagome::consensus::grandpa::JustificationObserver::applyJustification ( const primitives::BlockInfo block_info,
const GrandpaJustification justification 
)
pure virtual

Validate provided {

Parameters
justification}for finalization {
block}.If it valid finalize {
block}and save {
justification}in storage.
blockis observed block info
justificationjustification of finalization of provided block
Returns
nothing or on error

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


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