Skip to content

Commit

Permalink
Fix XCM instruction weight in RialtoParachain to match Millau weight (p…
Browse files Browse the repository at this point in the history
…aritytech#1418)

* fix XCM instruction weight in RialtoParachain to match Millau weight

* fix spelling
  • Loading branch information
svyatonik authored and serban300 committed Apr 10, 2024
1 parent cb15464 commit 05e7bf7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bridges/bin/rialto-parachain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 05e7bf7

Please sign in to comment.