pub trait CollectCollationInfo<Block: BlockT>: Core<Block> {
    // Provided methods
    fn collect_collation_info_before_version_2(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<CollationInfoV1, ApiError> { ... }
    fn collect_collation_info(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        header: &Block::Header
    ) -> Result<CollationInfo, ApiError> { ... }
}
Expand description

Runtime api to collect information about a collation.

Provided Methods§

source

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

👎Deprecated

Collect information about a collation.

source

fn collect_collation_info( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, header: &Block::Header ) -> Result<CollationInfo, ApiError>

Collect information about a collation.

The given header is the header of the built block for that we are collecting the collation info for.

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 2u32

The version of the runtime api.

Implementors§