Skip to content

Commit

Permalink
Reduce default PoV size for XCM instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Sep 29, 2023
1 parent f268e81 commit 7a7e123
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions runtime/astar/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
// For the PoV size, we estimate 64 kB per instruction - which will is once again very conservative.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
// For the PoV size, we estimate 4 kB per instruction. This will be changed when we benchmark the instructions.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024);
pub const MaxInstructions: u32 = 100;
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/shibuya/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
// For the PoV size, we estimate 64 kB per instruction - which will is once again very conservative.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
// For the PoV size, we estimate 4 kB per instruction. This will be changed when we benchmark the instructions.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024);
pub const MaxInstructions: u32 = 100;
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/shiden/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
// For the PoV size, we estimate 64 kB per instruction - which will is once again very conservative.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 64 * 1024);
// For the PoV size, we estimate 4 kB per instruction. This will be changed when we benchmark the instructions.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024);
pub const MaxInstructions: u32 = 100;
}

Expand Down

0 comments on commit 7a7e123

Please sign in to comment.