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

#include <consistency_keeper.hpp>

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

Public Member Functions

 Guard (ConsistencyKeeper &keeper, primitives::BlockInfo block)
 
 ~Guard ()
 
void commit ()
 
void rollback ()
 

Private Attributes

ConsistencyKeeperkeeper_
 
std::optional< primitives::BlockInfoblock_
 

Detailed Description

Definition at line 17 of file consistency_keeper.hpp.

Constructor & Destructor Documentation

kagome::consensus::babe::ConsistencyKeeper::Guard::Guard ( ConsistencyKeeper keeper,
primitives::BlockInfo  block 
)
inline

Definition at line 19 of file consistency_keeper.hpp.

kagome::consensus::babe::ConsistencyKeeper::Guard::~Guard ( )
inline

Definition at line 21 of file consistency_keeper.hpp.

Member Function Documentation

void kagome::consensus::babe::ConsistencyKeeper::Guard::commit ( )
inline

Definition at line 25 of file consistency_keeper.hpp.

void kagome::consensus::babe::ConsistencyKeeper::Guard::rollback ( )
inline

Definition at line 31 of file consistency_keeper.hpp.

Member Data Documentation

std::optional<primitives::BlockInfo> kagome::consensus::babe::ConsistencyKeeper::Guard::block_
private

Definition at line 40 of file consistency_keeper.hpp.

ConsistencyKeeper& kagome::consensus::babe::ConsistencyKeeper::Guard::keeper_
private

Definition at line 39 of file consistency_keeper.hpp.


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