Kagome
Polkadot Runtime Engine in C++17
kagome::blockchain::DigestTrackerImpl Class Referencefinal

#include <digest_tracker_impl.hpp>

Inheritance diagram for kagome::blockchain::DigestTrackerImpl:
Collaboration diagram for kagome::blockchain::DigestTrackerImpl:

Public Member Functions

 DigestTrackerImpl (std::shared_ptr< consensus::BabeDigestObserver > babe_update_observer, std::shared_ptr< authority::AuthorityUpdateObserver > authority_update_observer)
 
outcome::result< void > onDigest (const primitives::BlockInfo &block, const primitives::Digest &digest) override
 
void cancel (const primitives::BlockInfo &block) override
 
- Public Member Functions inherited from kagome::blockchain::DigestTracker
virtual ~DigestTracker ()=default
 

Private Member Functions

outcome::result< void > onPreRuntime (const primitives::BlockInfo &block, const primitives::PreRuntime &message)
 
outcome::result< void > onConsensus (const primitives::BlockInfo &block, const primitives::Consensus &consensus_message)
 

Private Attributes

std::shared_ptr< consensus::BabeDigestObserverbabe_digest_observer_
 
std::shared_ptr< authority::AuthorityUpdateObserverauthority_update_observer_
 
log::Logger logger_
 

Detailed Description

Definition at line 22 of file digest_tracker_impl.hpp.

Constructor & Destructor Documentation

kagome::blockchain::DigestTrackerImpl::DigestTrackerImpl ( std::shared_ptr< consensus::BabeDigestObserver babe_update_observer,
std::shared_ptr< authority::AuthorityUpdateObserver authority_update_observer 
)

Definition at line 14 of file digest_tracker_impl.cpp.

Member Function Documentation

void kagome::blockchain::DigestTrackerImpl::cancel ( const primitives::BlockInfo block)
overridevirtual

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

Parameters
block- corresponding block

Implements kagome::blockchain::DigestTracker.

Definition at line 70 of file digest_tracker_impl.cpp.

outcome::result< void > kagome::blockchain::DigestTrackerImpl::onConsensus ( const primitives::BlockInfo block,
const primitives::Consensus consensus_message 
)
private

Definition at line 78 of file digest_tracker_impl.cpp.

outcome::result< void > kagome::blockchain::DigestTrackerImpl::onDigest ( const primitives::BlockInfo block,
const primitives::Digest digest 
)
overridevirtual

Processes block digest

Parameters
message
Returns
failure or nothing

Implements kagome::blockchain::DigestTracker.

Definition at line 25 of file digest_tracker_impl.cpp.

outcome::result< void > kagome::blockchain::DigestTrackerImpl::onPreRuntime ( const primitives::BlockInfo block,
const primitives::PreRuntime message 
)
private

Definition at line 114 of file digest_tracker_impl.cpp.

Member Data Documentation

std::shared_ptr<authority::AuthorityUpdateObserver> kagome::blockchain::DigestTrackerImpl::authority_update_observer_
private

Definition at line 44 of file digest_tracker_impl.hpp.

std::shared_ptr<consensus::BabeDigestObserver> kagome::blockchain::DigestTrackerImpl::babe_digest_observer_
private

Definition at line 42 of file digest_tracker_impl.hpp.

log::Logger kagome::blockchain::DigestTrackerImpl::logger_
private

Definition at line 46 of file digest_tracker_impl.hpp.


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