Kagome
Polkadot Runtime Engine in C++17
|
#include <core.hpp>
Public Member Functions | |
CoreImpl (std::shared_ptr< Executor > executor, std::shared_ptr< storage::changes_trie::ChangesTracker > changes_tracker, std::shared_ptr< const blockchain::BlockHeaderRepository > header_repo) | |
outcome::result< primitives::Version > | version (primitives::BlockHash const &block) override |
Returns the version of the runtime. More... | |
outcome::result< primitives::Version > | version () override |
Returns the version of the runtime - version for nested calls, such as in MiscExtension. More... | |
outcome::result< void > | execute_block (const primitives::Block &block) override |
Executes the given block. More... | |
outcome::result< storage::trie::RootHash > | initialize_block (const primitives::BlockHeader &header) override |
Initialize a block with the given header. More... | |
Public Member Functions inherited from kagome::runtime::Core | |
virtual | ~Core ()=default |
Private Attributes | |
std::shared_ptr< Executor > | executor_ |
std::shared_ptr< storage::changes_trie::ChangesTracker > | changes_tracker_ |
std::shared_ptr< const blockchain::BlockHeaderRepository > | header_repo_ |
kagome::runtime::CoreImpl::CoreImpl | ( | std::shared_ptr< Executor > | executor, |
std::shared_ptr< storage::changes_trie::ChangesTracker > | changes_tracker, | ||
std::shared_ptr< const blockchain::BlockHeaderRepository > | header_repo | ||
) |
|
overridevirtual |
|
overridevirtual |
Initialize a block with the given header.
header | header used for block initialization |
Implements kagome::runtime::Core.
|
overridevirtual |
|
overridevirtual |
Returns the version of the runtime - version for nested calls, such as in MiscExtension.
Implements kagome::runtime::Core.
|
private |
|
private |
|
private |