Kagome
Polkadot Runtime Engine in C++17
|
#include <block_appender_impl.hpp>
Public Types | |
enum | Error { Error::INVALID_BLOCK = 1, Error::PARENT_NOT_FOUND } |
Public Member Functions | |
BlockAppenderImpl (std::shared_ptr< blockchain::BlockTree > block_tree, std::shared_ptr< consensus::babe::BabeConfigRepository > babe_config_repo, std::shared_ptr< BlockValidator > block_validator, std::shared_ptr< grandpa::Environment > grandpa_environment, std::shared_ptr< crypto::Hasher > hasher, std::shared_ptr< blockchain::DigestTracker > digest_tracker, std::shared_ptr< BabeUtil > babe_util, std::shared_ptr< babe::ConsistencyKeeper > consistency_keeper) | |
outcome::result< void > | appendBlock (primitives::BlockData &&b) override |
outcome::result< void > | applyJustification (const primitives::BlockInfo &block_info, const primitives::Justification &justification) override |
Public Member Functions inherited from kagome::consensus::BlockAppender | |
virtual | ~BlockAppender ()=default |
Private Attributes | |
std::shared_ptr< blockchain::BlockTree > | block_tree_ |
std::shared_ptr< consensus::babe::BabeConfigRepository > | babe_config_repo_ |
std::shared_ptr< BlockValidator > | block_validator_ |
std::shared_ptr< grandpa::Environment > | grandpa_environment_ |
std::shared_ptr< crypto::Hasher > | hasher_ |
std::shared_ptr< blockchain::DigestTracker > | digest_tracker_ |
std::shared_ptr< BabeUtil > | babe_util_ |
std::shared_ptr< babe::ConsistencyKeeper > | consistency_keeper_ |
std::optional< primitives::BlockInfo > | last_appended_ |
std::map< primitives::BlockInfo, primitives::Justification > | justifications_ |
struct { | |
std::chrono::high_resolution_clock::time_point | time |
primitives::BlockNumber | block_number |
} | speed_data_ = {} |
log::Logger | logger_ |
Definition at line 34 of file block_appender_impl.hpp.
|
strong |
Enumerator | |
---|---|
INVALID_BLOCK | |
PARENT_NOT_FOUND |
Definition at line 38 of file block_appender_impl.hpp.
kagome::consensus::BlockAppenderImpl::BlockAppenderImpl | ( | std::shared_ptr< blockchain::BlockTree > | block_tree, |
std::shared_ptr< consensus::babe::BabeConfigRepository > | babe_config_repo, | ||
std::shared_ptr< BlockValidator > | block_validator, | ||
std::shared_ptr< grandpa::Environment > | grandpa_environment, | ||
std::shared_ptr< crypto::Hasher > | hasher, | ||
std::shared_ptr< blockchain::DigestTracker > | digest_tracker, | ||
std::shared_ptr< BabeUtil > | babe_util, | ||
std::shared_ptr< babe::ConsistencyKeeper > | consistency_keeper | ||
) |
Definition at line 35 of file block_appender_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::BlockAppender.
Definition at line 64 of file block_appender_impl.cpp.
|
overridevirtual |
Implements kagome::consensus::BlockAppender.
Definition at line 276 of file block_appender_impl.cpp.
|
private |
Definition at line 58 of file block_appender_impl.hpp.
|
private |
Definition at line 63 of file block_appender_impl.hpp.
|
private |
Definition at line 57 of file block_appender_impl.hpp.
|
private |
Definition at line 59 of file block_appender_impl.hpp.
|
private |
Definition at line 64 of file block_appender_impl.hpp.
|
private |
Definition at line 62 of file block_appender_impl.hpp.
|
private |
Definition at line 60 of file block_appender_impl.hpp.
|
private |
Definition at line 61 of file block_appender_impl.hpp.
|
private |
Definition at line 69 of file block_appender_impl.hpp.
|
private |
Definition at line 66 of file block_appender_impl.hpp.
|
private |
Definition at line 76 of file block_appender_impl.hpp.
struct { ... } kagome::consensus::BlockAppenderImpl::speed_data_ |