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

#include <babe_digest_observer.hpp>

Inheritance diagram for kagome::consensus::BabeDigestObserver:
Collaboration diagram for kagome::consensus::BabeDigestObserver:

Public Member Functions

virtual ~BabeDigestObserver ()=default
 
virtual outcome::result< void > onDigest (const primitives::BlockInfo &block, const consensus::BabeBlockHeader &digest)=0
 
virtual outcome::result< void > onDigest (const primitives::BlockInfo &block, const primitives::BabeDigest &digest)=0
 
virtual void cancel (const primitives::BlockInfo &block)=0
 

Detailed Description

Definition at line 15 of file babe_digest_observer.hpp.

Constructor & Destructor Documentation

virtual kagome::consensus::BabeDigestObserver::~BabeDigestObserver ( )
virtualdefault

Member Function Documentation

virtual void kagome::consensus::BabeDigestObserver::cancel ( const primitives::BlockInfo block)
pure virtual
virtual outcome::result<void> kagome::consensus::BabeDigestObserver::onDigest ( const primitives::BlockInfo block,
const consensus::BabeBlockHeader digest 
)
pure virtual

Observes BabeDigest of block

Parameters
block- block digest of which observed
digest- BabeBlockHeader as decoded content of PreRuntime digest

Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.

virtual outcome::result<void> kagome::consensus::BabeDigestObserver::onDigest ( const primitives::BlockInfo block,
const primitives::BabeDigest digest 
)
pure virtual

Observes BabeDigest of block

Parameters
block- block digest of which observed
digest- BabeDigest as particular variant of ConsensusLog digest

Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.


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