Kagome
Polkadot Runtime Engine in C++17
kagome::authority::AuthorityUpdateObserver Class Referenceabstract

#include <authority_update_observer.hpp>

Inheritance diagram for kagome::authority::AuthorityUpdateObserver:
Collaboration diagram for kagome::authority::AuthorityUpdateObserver:

Public Member Functions

virtual ~AuthorityUpdateObserver ()=default
 
virtual outcome::result< void > onConsensus (const primitives::BlockInfo &block, const primitives::Consensus &message)=0
 
virtual void cancel (const primitives::BlockInfo &block)=0
 Cancel changes. Should be called when the block is rolled back. More...
 

Detailed Description

Definition at line 14 of file authority_update_observer.hpp.

Constructor & Destructor Documentation

virtual kagome::authority::AuthorityUpdateObserver::~AuthorityUpdateObserver ( )
virtualdefault

Member Function Documentation

virtual void kagome::authority::AuthorityUpdateObserver::cancel ( const primitives::BlockInfo block)
pure virtual

Cancel changes. Should be called when the block is rolled back.

Parameters
block- corresponding block

Implemented in kagome::authority::AuthorityManagerImpl.

virtual outcome::result<void> kagome::authority::AuthorityUpdateObserver::onConsensus ( const primitives::BlockInfo block,
const primitives::Consensus message 
)
pure virtual

Processes consensus message in block digest

Parameters
message
Returns
failure or nothing

Implemented in kagome::authority::AuthorityManagerImpl.


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