Trait subcoin_runtime_primitives::SubcoinApi

source ·
pub trait SubcoinApi<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> { ... }
    fn coins_count(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
    ) -> Result<u64, 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.

source

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

Returns the number of total coins (i.e., the size of UTXO set).

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§