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§
sourcefn collect_collation_info_before_version_2(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<CollationInfoV1, ApiError>
👎Deprecated
fn collect_collation_info_before_version_2( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<CollationInfoV1, ApiError>
Collect information about a collation.
sourcefn collect_collation_info(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
header: &Block::Header,
) -> Result<CollationInfo, ApiError>
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.