Function pallet_grandpa_finality_verifier::pallet::initialize

source ยท
pub fn initialize<T: Config, C: Chain>(
    chain_id: T::ChainId,
    init_data: &[u8],
) -> DispatchResult
Expand description

Bootstrap the chain to start importing valid finalized blocks

The initial configuration provided does not need to be the genesis header of the bridged chain, it can be any arbitrary header. You can also provide the next scheduled set change if it is already know.

This function is only allowed to be called from a trusted origin and writes to storage with practically no checks in terms of the validity of the data. It is important that you ensure that valid data is being passed in.