Kagome
Polkadot Runtime Engine in C++17
|
#include <digest_tracker_impl.hpp>
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::BabeDigestObserver > | babe_digest_observer_ |
std::shared_ptr< authority::AuthorityUpdateObserver > | authority_update_observer_ |
log::Logger | logger_ |
Definition at line 22 of file digest_tracker_impl.hpp.
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.
|
overridevirtual |
Cancels digest of applied block. Should be called when the block is rolling back
block | - corresponding block |
Implements kagome::blockchain::DigestTracker.
Definition at line 70 of file digest_tracker_impl.cpp.
|
private |
Definition at line 78 of file digest_tracker_impl.cpp.
|
overridevirtual |
Processes block digest
message |
Implements kagome::blockchain::DigestTracker.
Definition at line 25 of file digest_tracker_impl.cpp.
|
private |
Definition at line 114 of file digest_tracker_impl.cpp.
|
private |
Definition at line 44 of file digest_tracker_impl.hpp.
|
private |
Definition at line 42 of file digest_tracker_impl.hpp.
|
private |
Definition at line 46 of file digest_tracker_impl.hpp.