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

#include <consistency_keeper_impl.hpp>

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

Public Member Functions

 ConsistencyKeeperImpl (std::shared_ptr< application::AppStateManager > app_state_manager, std::shared_ptr< storage::BufferStorage > storage, std::shared_ptr< blockchain::BlockTree > block_tree, std::shared_ptr< blockchain::DigestTracker > digest_tracker)
 
 ~ConsistencyKeeperImpl () override=default
 
Guard start (primitives::BlockInfo block) override
 
- Public Member Functions inherited from kagome::consensus::babe::ConsistencyKeeper
virtual ~ConsistencyKeeper ()=default
 

Protected Member Functions

void commit (primitives::BlockInfo block) override
 
void rollback (primitives::BlockInfo block) override
 

Private Member Functions

bool prepare ()
 
void cleanup ()
 

Private Attributes

std::shared_ptr< application::AppStateManagerapp_state_manager_
 
std::shared_ptr< storage::BufferStoragestorage_
 
std::shared_ptr< blockchain::BlockTreeblock_tree_
 
std::shared_ptr< blockchain::DigestTrackerdigest_tracker_
 
log::Logger logger_
 
std::atomic_bool in_progress_ {false}
 

Detailed Description

Definition at line 27 of file consistency_keeper_impl.hpp.

Constructor & Destructor Documentation

kagome::consensus::babe::ConsistencyKeeperImpl::ConsistencyKeeperImpl ( std::shared_ptr< application::AppStateManager app_state_manager,
std::shared_ptr< storage::BufferStorage storage,
std::shared_ptr< blockchain::BlockTree block_tree,
std::shared_ptr< blockchain::DigestTracker digest_tracker 
)

Definition at line 18 of file consistency_keeper_impl.cpp.

kagome::consensus::babe::ConsistencyKeeperImpl::~ConsistencyKeeperImpl ( )
overridedefault

Member Function Documentation

void kagome::consensus::babe::ConsistencyKeeperImpl::cleanup ( )
private

Definition at line 113 of file consistency_keeper_impl.cpp.

void kagome::consensus::babe::ConsistencyKeeperImpl::commit ( primitives::BlockInfo  block)
overrideprotectedvirtual
bool kagome::consensus::babe::ConsistencyKeeperImpl::prepare ( )
private

Definition at line 36 of file consistency_keeper_impl.cpp.

void kagome::consensus::babe::ConsistencyKeeperImpl::rollback ( primitives::BlockInfo  block)
overrideprotectedvirtual
ConsistencyKeeper::Guard kagome::consensus::babe::ConsistencyKeeperImpl::start ( primitives::BlockInfo  block)
overridevirtual

Member Data Documentation

std::shared_ptr<application::AppStateManager> kagome::consensus::babe::ConsistencyKeeperImpl::app_state_manager_
private

Definition at line 47 of file consistency_keeper_impl.hpp.

std::shared_ptr<blockchain::BlockTree> kagome::consensus::babe::ConsistencyKeeperImpl::block_tree_
private

Definition at line 49 of file consistency_keeper_impl.hpp.

std::shared_ptr<blockchain::DigestTracker> kagome::consensus::babe::ConsistencyKeeperImpl::digest_tracker_
private

Definition at line 50 of file consistency_keeper_impl.hpp.

std::atomic_bool kagome::consensus::babe::ConsistencyKeeperImpl::in_progress_ {false}
private

Definition at line 53 of file consistency_keeper_impl.hpp.

log::Logger kagome::consensus::babe::ConsistencyKeeperImpl::logger_
private

Definition at line 52 of file consistency_keeper_impl.hpp.

std::shared_ptr<storage::BufferStorage> kagome::consensus::babe::ConsistencyKeeperImpl::storage_
private

Definition at line 48 of file consistency_keeper_impl.hpp.


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