Fix XCM instruction weight in RialtoParachain to match Millau weight (#1418)

* fix XCM instruction weight in RialtoParachain to match Millau weight

* fix spelling
This commit is contained in:
Svyatoslav Nikolsky
2022-05-27 15:54:47 +03:00
committed by Bastian Köcher
parent 1a8066472a
commit 188f16beb0
@@ -354,10 +354,13 @@ pub type XcmOriginToTransactDispatchOrigin = (
XcmPassthrough<Origin>,
);
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);