From 6edff7e528ff8679e161d46187f6aa597cf25b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dino=20Pa=C4=8Dandi?= <3002868+Dinonard@users.noreply.github.com> Date: Sun, 1 Oct 2023 11:27:09 +0200 Subject: [PATCH] Reduce default PoV size for XCM instructions (#1035) --- runtime/astar/src/xcm_config.rs | 4 ++-- runtime/shibuya/src/xcm_config.rs | 4 ++-- runtime/shiden/src/xcm_config.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/astar/src/xcm_config.rs b/runtime/astar/src/xcm_config.rs index c147f4cdf4..7a5f151201 100644 --- a/runtime/astar/src/xcm_config.rs +++ b/runtime/astar/src/xcm_config.rs @@ -135,8 +135,8 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate. - // For the PoV size, we estimate 64 kB per instruction - which will is once again very conservative. - pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024); + // For the PoV size, we estimate 4 kB per instruction. This will be changed when we benchmark the instructions. + pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024); pub const MaxInstructions: u32 = 100; } diff --git a/runtime/shibuya/src/xcm_config.rs b/runtime/shibuya/src/xcm_config.rs index 4ef26d328d..d8a08efdab 100644 --- a/runtime/shibuya/src/xcm_config.rs +++ b/runtime/shibuya/src/xcm_config.rs @@ -137,8 +137,8 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate. - // For the PoV size, we estimate 64 kB per instruction - which will is once again very conservative. - pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024); + // For the PoV size, we estimate 4 kB per instruction. This will be changed when we benchmark the instructions. + pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024); pub const MaxInstructions: u32 = 100; } diff --git a/runtime/shiden/src/xcm_config.rs b/runtime/shiden/src/xcm_config.rs index ee3a3d678b..2ea8d39172 100644 --- a/runtime/shiden/src/xcm_config.rs +++ b/runtime/shiden/src/xcm_config.rs @@ -137,8 +137,8 @@ pub type XcmOriginToTransactDispatchOrigin = ( parameter_types! { // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate. - // For the PoV size, we estimate 64 kB per instruction - which will is once again very conservative. - pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024); + // For the PoV size, we estimate 4 kB per instruction. This will be changed when we benchmark the instructions. + pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024); pub const MaxInstructions: u32 = 100; }