Trait sp_block_builder::BlockBuilder[][src]

pub trait BlockBuilder<Block: BlockT>: Core<Block> {
    fn apply_extrinsic(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        extrinsic: <Block as BlockT>::Extrinsic
    ) -> Result<ApplyExtrinsicResult, ApiError> { ... }
fn apply_extrinsic_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        extrinsic: <Block as BlockT>::Extrinsic
    ) -> Result<ApplyExtrinsicResult, ApiError> { ... }
fn finalize_block(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<<Block as BlockT>::Header, ApiError> { ... }
fn finalize_block_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<<Block as BlockT>::Header, ApiError> { ... }
fn inherent_extrinsics(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        inherent: InherentData
    ) -> Result<Vec<<Block as BlockT>::Extrinsic>, ApiError> { ... }
fn inherent_extrinsics_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        inherent: InherentData
    ) -> Result<Vec<<Block as BlockT>::Extrinsic>, ApiError> { ... }
fn check_inherents(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        block: Block,
        data: InherentData
    ) -> Result<CheckInherentsResult, ApiError> { ... }
fn check_inherents_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        block: Block,
        data: InherentData
    ) -> Result<CheckInherentsResult, ApiError> { ... } }
Expand description

The BlockBuilder api trait that provides the required functionality for building a block.

Provided methods

Apply the given extrinsic.

Returns an inclusion outcome which specifies if this extrinsic is included in this block or not.

Apply the given extrinsic.

Returns an inclusion outcome which specifies if this extrinsic is included in this block or not.

Finish the current block.

Finish the current block.

Generate inherent extrinsics. The inherent data will vary from chain to chain.

Generate inherent extrinsics. The inherent data will vary from chain to chain.

Check that the inherents are valid. The inherent data will vary from chain to chain.

Check that the inherents are valid. The inherent data will vary from chain to chain.

Trait Implementations

The identifier of the runtime api.

The version of the runtime api.

Implementors