Skip to content

Commit

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

* fix XCM instruction weight in RialtoParachain to match Millau weight

* fix spelling
  • Loading branch information
svyatonik authored and bkchr committed Apr 10, 2024
1 parent 1a80664 commit 188f16b
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 188f16b

Please sign in to comment.