referrerpolicy=no-referrer-when-downgrade
pub trait BlockToRelayHeightConversion<T: Config> {
    // Required methods
    fn convert_block_number_to_relay_height(
        block_number: BlockNumberFor<T>,
    ) -> RelayBlockNumberOf<T>;
    fn convert_block_length_to_relay_length(
        block_number: BlockNumberFor<T>,
    ) -> RelayBlockNumberOf<T>;
}

Required Methods§

source

fn convert_block_number_to_relay_height( block_number: BlockNumberFor<T>, ) -> RelayBlockNumberOf<T>

Converts absolute value of parachain block number to relay chain block number

source

fn convert_block_length_to_relay_length( block_number: BlockNumberFor<T>, ) -> RelayBlockNumberOf<T>

Converts parachain block length into equivalent relay chain block length

Object Safety§

This trait is not object safe.

Implementors§