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> { ... }
fn get_utxos(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
outpoints: Vec<OutPoint>,
) -> Result<Vec<Option<Coin>>, 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.
Sourcefn coins_count(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<u64, ApiError>
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).