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§
sourcefn execute_block_without_state_root_check(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
block: Block,
) -> Result<(), ApiError>
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()
.
sourcefn finalize_block_without_checks(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
header: Block::Header,
) -> Result<(), ApiError>
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.