Kagome
Polkadot Runtime Engine in C++17
kagome::blockchain::DigestTracker Class Referenceabstract

#include <digest_tracker.hpp>

Inheritance diagram for kagome::blockchain::DigestTracker:
Collaboration diagram for kagome::blockchain::DigestTracker:

Public Member Functions

virtual ~DigestTracker ()=default
 
virtual outcome::result< void > onDigest (const primitives::BlockInfo &block, const primitives::Digest &digest)=0
 
virtual void cancel (const primitives::BlockInfo &block)=0
 

Detailed Description

Definition at line 15 of file digest_tracker.hpp.

Constructor & Destructor Documentation

virtual kagome::blockchain::DigestTracker::~DigestTracker ( )
virtualdefault

Member Function Documentation

virtual void kagome::blockchain::DigestTracker::cancel ( const primitives::BlockInfo block)
pure virtual

Cancels digest of applied block. Should be called when the block is rolling back

Parameters
block- corresponding block

Implemented in kagome::blockchain::DigestTrackerImpl.

virtual outcome::result<void> kagome::blockchain::DigestTracker::onDigest ( const primitives::BlockInfo block,
const primitives::Digest digest 
)
pure virtual

Processes block digest

Parameters
message
Returns
failure or nothing

Implemented in kagome::blockchain::DigestTrackerImpl.


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