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

#include <consistency_keeper.hpp>

Inheritance diagram for kagome::consensus::babe::ConsistencyKeeper:
Collaboration diagram for kagome::consensus::babe::ConsistencyKeeper:

Classes

class  Guard
 

Public Member Functions

virtual ~ConsistencyKeeper ()=default
 
virtual Guard start (primitives::BlockInfo block)=0
 

Protected Member Functions

virtual void commit (primitives::BlockInfo block)=0
 
virtual void rollback (primitives::BlockInfo block)=0
 

Detailed Description

Class to provide transactional applying of block and rollback that on start if last applied block was applied partially

Definition at line 15 of file consistency_keeper.hpp.

Constructor & Destructor Documentation

virtual kagome::consensus::babe::ConsistencyKeeper::~ConsistencyKeeper ( )
virtualdefault

Member Function Documentation

virtual void kagome::consensus::babe::ConsistencyKeeper::commit ( primitives::BlockInfo  block)
protectedpure virtual
virtual void kagome::consensus::babe::ConsistencyKeeper::rollback ( primitives::BlockInfo  block)
protectedpure virtual
virtual Guard kagome::consensus::babe::ConsistencyKeeper::start ( primitives::BlockInfo  block)
pure virtual

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