referrerpolicy=no-referrer-when-downgrade
pub fn mock_open_hrmp_channel<C: Config, T: ProvideInherent<Call = Call<C>>>(
    sender: ParaId,
    recipient: ParaId,
    included_head: HeaderFor<C>,
    slot_digest: &[u8],
    slot_durations: &SlotDurations,
)
Expand description

Helper function which emulates opening HRMP channel which is needed for XcmpQueue to pass.

Calls parachain-system’s create_inherent in case the channel hasn’t been opened before, and thus requires additional parameters for validating it: latest included parachain head and parachain AuRa-slot.

AuRa consensus hook expects pallets to be initialized, before calling this function make sure to run_to_block at least once.