referrerpolicy=no-referrer-when-downgrade

Function pallet_bridge_grandpa::pallet::dispatchables::initialize

source ·
pub fn initialize<T: Config<I>, I: 'static>(
    init_data: InitializationData<BridgedHeader<T, I>>,
)
Expand description

Bootstrap the bridge pallet with an initial header and authority set from which to sync.

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.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::initialize.