adjust XCM unit weights to 1B (#735)

This commit is contained in:
Alexander Popiak
2021-11-09 17:14:16 +01:00
committed by GitHub
parent 66310bd6ce
commit 8301e17f88
4 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -352,8 +352,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
); );
parameter_types! { parameter_types! {
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate. // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000; pub UnitWeightCost: Weight = 1_000_000_000;
// One ROC buys 1 second of weight. // One ROC buys 1 second of weight.
pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), ROC); pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), ROC);
pub const MaxInstructions: u32 = 100; pub const MaxInstructions: u32 = 100;
+2 -2
View File
@@ -194,8 +194,8 @@ match_type! {
} }
parameter_types! { parameter_types! {
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate. // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000; pub UnitWeightCost: Weight = 1_000_000_000;
pub const MaxInstructions: u32 = 100; pub const MaxInstructions: u32 = 100;
} }
+2 -2
View File
@@ -522,8 +522,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
); );
parameter_types! { parameter_types! {
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate. // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000; pub UnitWeightCost: Weight = 1_000_000_000;
pub const MaxInstructions: u32 = 100; pub const MaxInstructions: u32 = 100;
} }
+2 -1
View File
@@ -510,7 +510,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
); );
parameter_types! { parameter_types! {
pub UnitWeightCost: Weight = 1_000; // One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
pub UnitWeightCost: Weight = 1_000_000_000;
pub const MaxInstructions: u32 = 100; pub const MaxInstructions: u32 = 100;
} }