Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

sudo call to establish hrmp channel #4998

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update runtime/parachains/src/hrmp.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
  • Loading branch information
stanly-johnson and bkchr authored Feb 27, 2022
commit 9f8dcf3e6f1dbc5bcc1377eff5c7099bece8393f
6 changes: 4 additions & 2 deletions runtime/parachains/src/hrmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,14 @@ pub mod pallet {
Ok(())
}

/// Sudo call to establish a channel from the sender to the recipient.
/// Call to establish a channel from the sender to the recipient.
///
/// This is equivalent to sending an `hrmp_init_open_channel` extrinsic followed by
/// `hrmp_accept_open_channel`.
///
/// Origin must be Root.
#[pallet::weight(<T as Config>::WeightInfo::hrmp_init_open_channel() + <T as Config>::WeightInfo::hrmp_accept_open_channel())]
pub fn sudo_establish_hrmp_channel(
pub fn force_establish_hrmp_channel(
origin: OriginFor<T>,
sender: ParaId,
recipient: ParaId,
Expand Down