From 18dbc4d9c7a5068559188ef1783ffaed450d1301 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 27 May 2022 15:54:47 +0300 Subject: [PATCH] Fix XCM instruction weight in RialtoParachain to match Millau weight (#1418) * fix XCM instruction weight in RialtoParachain to match Millau weight * fix spelling --- bridges/bin/rialto-parachain/runtime/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bridges/bin/rialto-parachain/runtime/src/lib.rs b/bridges/bin/rialto-parachain/runtime/src/lib.rs index 7110e5ba4fc4..0ebd0dc306ec 100644 --- a/bridges/bin/rialto-parachain/runtime/src/lib.rs +++ b/bridges/bin/rialto-parachain/runtime/src/lib.rs @@ -354,10 +354,13 @@ pub type XcmOriginToTransactDispatchOrigin = ( XcmPassthrough, ); -pub const BASE_XCM_WEIGHT: Weight = 1_000_000; +// TODO: until https://github.com/paritytech/parity-bridges-common/issues/1417 is fixed (in either way), +// the following constant must match the similar constant in the Millau runtime. + +/// One XCM operation is `1_000_000_000` weight - almost certainly a conservative estimate. +pub const BASE_XCM_WEIGHT: Weight = 1_000_000_000; parameter_types! { - // One XCM operation is 1_000_000 weight - almost certainly a conservative estimate. pub UnitWeightCost: Weight = BASE_XCM_WEIGHT; // One UNIT buys 1 second of weight. pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), UNIT);