Trait 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§