sgns::runtime::Core¶
#include <core.hpp>
Inherited by sgns::runtime::binaryen::CoreImpl
Public Functions¶
| Name | |
|---|---|
| virtual | ~Core() =default |
| virtual outcome::result< primitives::Version > | version(const boost::optional< primitives::BlockHash > & block_hash) =0 Returns the version of the runtime. |
| virtual outcome::result< void > | execute_block(const primitives::Block & block) =0 Executes the given block. |
| virtual outcome::result< void > | initialise_block(const primitives::BlockHeader & header) =0 Initialize a block with the given header. |
| virtual outcome::result< std::vector< primitives::AuthorityId > > | authorities(const primitives::BlockId & block_id) =0 |
Detailed Description¶
Core represents mandatory part of runtime api
Public Functions Documentation¶
function ~Core¶
function version¶
virtual outcome::result< primitives::Version > version(
const boost::optional< primitives::BlockHash > & block_hash
) =0
Returns the version of the runtime.
Return: runtime version
Reimplemented by: sgns::runtime::binaryen::CoreImpl::version
function execute_block¶
Executes the given block.
Parameters:
- block block to execute
Reimplemented by: sgns::runtime::binaryen::CoreImpl::execute_block
function initialise_block¶
Initialize a block with the given header.
Parameters:
- header header used for block initialization
Reimplemented by: sgns::runtime::binaryen::CoreImpl::initialise_block
function authorities¶
virtual outcome::result< std::vector< primitives::AuthorityId > > authorities(
const primitives::BlockId & block_id
) =0
Return: collection of authorities
Reimplemented by: sgns::runtime::binaryen::CoreImpl::authorities
Get current authorities
Updated on 2026-03-04 at 13:10:43 -0800