mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
adjust XCM unit weights to 1B (#735)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user