pub trait RelayParentOffsetApi<Block: BlockT>: Core<Block> {
// Provided method
fn relay_parent_offset(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<u32, ApiError> { ... }
}
Expand description
API to tell the node side how the relay parent should be chosen.
A larger offset indicates that the relay parent should not be the tip of the relay chain,
but N
blocks behind the tip. This offset is then enforced by the runtime.