Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce UnitWeightCost PoV size #911

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/astar/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
// The default POV size used by Polkadot/Kusama is 64 kB but that breaks backwards compatibility with v2.
// A small, but not negligible size of 4 kB is used instead.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024);
// The default POV size used by Polkadot/Kusama was 64 kB but that has been updated here: https://github.com/paritytech/polkadot/pull/7081
// We should properly benchmark instructions and get rid of fixed weights.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 1024);
pub const MaxInstructions: u32 = 100;
}

Expand Down
6 changes: 3 additions & 3 deletions runtime/shibuya/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
// The default POV size used by Polkadot/Kusama is 64 kB but that breaks backwards compatibility with v2.
// A small, but not negligible size of 4 kB is used instead.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024);
// The default POV size used by Polkadot/Kusama was 64 kB but that has been updated here: https://github.com/paritytech/polkadot/pull/7081
// We should properly benchmark instructions and get rid of fixed weights.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 1024);
pub const MaxInstructions: u32 = 100;
}

Expand Down
6 changes: 3 additions & 3 deletions runtime/shiden/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ pub type XcmOriginToTransactDispatchOrigin = (

parameter_types! {
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
// The default POV size used by Polkadot/Kusama is 64 kB but that breaks backwards compatibility with v2.
// A small, but not negligible size of 4 kB is used instead.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 4 * 1024);
// The default POV size used by Polkadot/Kusama was 64 kB but that has been updated here: https://github.com/paritytech/polkadot/pull/7081
// We should properly benchmark instructions and get rid of fixed weights.
pub UnitWeightCost: Weight = Weight::from_parts(1_000_000_000, 1024);
pub const MaxInstructions: u32 = 100;
}

Expand Down