Trait subcoin_runtime_primitives::Subcoin

source ·
pub trait Subcoin<Block: BlockT>: Core<Block> {
    // Provided methods
    fn execute_block_without_state_root_check(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        block: Block,
    ) -> Result<(), ApiError> { ... }
    fn finalize_block_without_checks(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        header: Block::Header,
    ) -> Result<(), ApiError> { ... }
}
Expand description

Subcoin API.

Provided Methods§

source

fn execute_block_without_state_root_check( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, block: Block, ) -> Result<(), ApiError>

Same as the original execute_block() with the removal of state_root check in the final_checks().

source

fn finalize_block_without_checks( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, header: Block::Header, ) -> Result<(), ApiError>

Finalize block without checking the extrinsics_root and state_root.

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn Subcoin<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§