From 66c2d46dedc3e367011a817b14420194b1c1c8db Mon Sep 17 00:00:00 2001 From: Dinonard Date: Tue, 18 Apr 2023 11:07:25 +0200 Subject: [PATCH] Reduce UnitWeightCost PoV size --- runtime/astar/src/xcm_config.rs | 6 +++--- runtime/shibuya/src/xcm_config.rs | 6 +++--- runtime/shiden/src/xcm_config.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/runtime/astar/src/xcm_config.rs b/runtime/astar/src/xcm_config.rs index 6745473004..1661b3dfde 100644 --- a/runtime/astar/src/xcm_config.rs +++ b/runtime/astar/src/xcm_config.rs @@ -129,9 +129,9 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate. - // The default POV size used by Polkadot/Kusama is 64 kB but that breaks backwards compatibility with v2. - // A small, but not negligible size of 4 kB is used instead. - pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024); + // The default POV size used by Polkadot/Kusama was 64 kB but that has been updated here: https://github.com/paritytech/polkadot/pull/7081 + // We should properly benchmark instructions and get rid of fixed weights. + pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 1024); pub const MaxInstructions: u32 = 100; } diff --git a/runtime/shibuya/src/xcm_config.rs b/runtime/shibuya/src/xcm_config.rs index 70fbc57d11..0a6d1d83ca 100644 --- a/runtime/shibuya/src/xcm_config.rs +++ b/runtime/shibuya/src/xcm_config.rs @@ -126,9 +126,9 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate. - // The default POV size used by Polkadot/Kusama is 64 kB but that breaks backwards compatibility with v2. - // A small, but not negligible size of 4 kB is used instead. - pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024); + // The default POV size used by Polkadot/Kusama was 64 kB but that has been updated here: https://github.com/paritytech/polkadot/pull/7081 + // We should properly benchmark instructions and get rid of fixed weights. + pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 1024); pub const MaxInstructions: u32 = 100; } diff --git a/runtime/shiden/src/xcm_config.rs b/runtime/shiden/src/xcm_config.rs index 0c7593bfa6..f0f8c2d7cc 100644 --- a/runtime/shiden/src/xcm_config.rs +++ b/runtime/shiden/src/xcm_config.rs @@ -128,9 +128,9 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate. - // The default POV size used by Polkadot/Kusama is 64 kB but that breaks backwards compatibility with v2. - // A small, but not negligible size of 4 kB is used instead. - pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024); + // The default POV size used by Polkadot/Kusama was 64 kB but that has been updated here: https://github.com/paritytech/polkadot/pull/7081 + // We should properly benchmark instructions and get rid of fixed weights. + pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 1024); pub const MaxInstructions: u32 = 100; }