Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::CoreImpl Class Referencefinal

#include <core.hpp>

Inheritance diagram for kagome::runtime::CoreImpl:
Collaboration diagram for kagome::runtime::CoreImpl:

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::Versionversion (primitives::BlockHash const &block) override
 Returns the version of the runtime. More...
 
outcome::result< primitives::Versionversion () 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::RootHashinitialize_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< Executorexecutor_
 
std::shared_ptr< storage::changes_trie::ChangesTrackerchanges_tracker_
 
std::shared_ptr< const blockchain::BlockHeaderRepositoryheader_repo_
 

Detailed Description

Definition at line 20 of file core.hpp.

Constructor & Destructor Documentation

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 
)

Definition at line 14 of file core.cpp.

Member Function Documentation

outcome::result< void > kagome::runtime::CoreImpl::execute_block ( const primitives::Block block)
overridevirtual

Executes the given block.

Parameters
blockblock to execute

Implements kagome::runtime::Core.

Definition at line 35 of file core.cpp.

outcome::result< storage::trie::RootHash > kagome::runtime::CoreImpl::initialize_block ( const primitives::BlockHeader header)
overridevirtual

Initialize a block with the given header.

Parameters
headerheader used for block initialization

Implements kagome::runtime::Core.

Definition at line 48 of file core.cpp.

outcome::result< primitives::Version > kagome::runtime::CoreImpl::version ( primitives::BlockHash const &  block)
overridevirtual

Returns the version of the runtime.

Returns
runtime version

Implements kagome::runtime::Core.

Definition at line 26 of file core.cpp.

outcome::result< primitives::Version > kagome::runtime::CoreImpl::version ( )
overridevirtual

Returns the version of the runtime - version for nested calls, such as in MiscExtension.

Returns
runtime version

Implements kagome::runtime::Core.

Definition at line 31 of file core.cpp.

Member Data Documentation

std::shared_ptr<storage::changes_trie::ChangesTracker> kagome::runtime::CoreImpl::changes_tracker_
private

Definition at line 40 of file core.hpp.

std::shared_ptr<Executor> kagome::runtime::CoreImpl::executor_
private

Definition at line 39 of file core.hpp.

std::shared_ptr<const blockchain::BlockHeaderRepository> kagome::runtime::CoreImpl::header_repo_
private

Definition at line 41 of file core.hpp.


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