From 4793a9a19bee9a1ffc2c8faca556f4df4b88c996 Mon Sep 17 00:00:00 2001 From: al3mart <11448715+al3mart@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:28:36 +0100 Subject: [PATCH 1/2] revert SendXcmOrigin in Rococo & Westend --- polkadot/runtime/rococo/src/xcm_config.rs | 7 ++----- polkadot/runtime/westend/src/xcm_config.rs | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/polkadot/runtime/rococo/src/xcm_config.rs b/polkadot/runtime/rococo/src/xcm_config.rs index c8f8f59dae99..9efb3d545b3a 100644 --- a/polkadot/runtime/rococo/src/xcm_config.rs +++ b/polkadot/runtime/rococo/src/xcm_config.rs @@ -236,11 +236,8 @@ pub type LocalPalletOriginToLocation = ( impl pallet_xcm::Config for Runtime { type RuntimeEvent = RuntimeEvent; - // We only allow the root, fellows and the staking admin to send messages. - // This is basically safe to enable for everyone (safe the possibility of someone spamming the - // parachain if they're willing to pay the KSM to send from the Relay-chain), but it's useless - // until we bring in XCM v3 which will make `DescendOrigin` a bit more useful. - type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; + // Note that this configuration of `SendXcmOrigin` is different from the one present in production. + type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; type XcmRouter = XcmRouter; // Anyone can execute XCM messages locally. type ExecuteXcmOrigin = xcm_builder::EnsureXcmOrigin; diff --git a/polkadot/runtime/westend/src/xcm_config.rs b/polkadot/runtime/westend/src/xcm_config.rs index 9ab6470f6dae..bbfd11774feb 100644 --- a/polkadot/runtime/westend/src/xcm_config.rs +++ b/polkadot/runtime/westend/src/xcm_config.rs @@ -233,7 +233,8 @@ pub type LocalPalletOriginToLocation = ( impl pallet_xcm::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; + // Note that this configuration of `SendXcmOrigin` is different from the one present in production. + type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; type XcmRouter = XcmRouter; // Anyone can execute XCM messages locally... type ExecuteXcmOrigin = xcm_builder::EnsureXcmOrigin; From b3beafd2e40da50e7dd71364c237b2a8267585e0 Mon Sep 17 00:00:00 2001 From: al3mart <11448715+al3mart@users.noreply.github.com> Date: Thu, 30 Nov 2023 16:51:28 +0100 Subject: [PATCH 2/2] cargo fmt --- polkadot/runtime/rococo/src/xcm_config.rs | 3 ++- polkadot/runtime/westend/src/xcm_config.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/polkadot/runtime/rococo/src/xcm_config.rs b/polkadot/runtime/rococo/src/xcm_config.rs index 9efb3d545b3a..083298cf4deb 100644 --- a/polkadot/runtime/rococo/src/xcm_config.rs +++ b/polkadot/runtime/rococo/src/xcm_config.rs @@ -236,7 +236,8 @@ pub type LocalPalletOriginToLocation = ( impl pallet_xcm::Config for Runtime { type RuntimeEvent = RuntimeEvent; - // Note that this configuration of `SendXcmOrigin` is different from the one present in production. + // Note that this configuration of `SendXcmOrigin` is different from the one present in + // production. type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; type XcmRouter = XcmRouter; // Anyone can execute XCM messages locally. diff --git a/polkadot/runtime/westend/src/xcm_config.rs b/polkadot/runtime/westend/src/xcm_config.rs index bbfd11774feb..d0c45fd1d6e8 100644 --- a/polkadot/runtime/westend/src/xcm_config.rs +++ b/polkadot/runtime/westend/src/xcm_config.rs @@ -233,7 +233,8 @@ pub type LocalPalletOriginToLocation = ( impl pallet_xcm::Config for Runtime { type RuntimeEvent = RuntimeEvent; - // Note that this configuration of `SendXcmOrigin` is different from the one present in production. + // Note that this configuration of `SendXcmOrigin` is different from the one present in + // production. type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; type XcmRouter = XcmRouter; // Anyone can execute XCM messages locally...