This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Fast runtime #89
Merged
Merged
Fast runtime #89
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,8 @@ use parachains_common::{ | |
HOURS, MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO, SLOT_DURATION, | ||
}; | ||
|
||
use polkadot_runtime_common::prod_or_fast; | ||
|
||
#[cfg(feature = "runtime-benchmarks")] | ||
use crate::xcm_config::benchmark_helpers::DoNothingRouter; | ||
#[cfg(feature = "runtime-benchmarks")] | ||
|
@@ -566,7 +568,7 @@ impl snowbridge_outbound_queue::Config for Runtime { | |
type Channels = EthereumSystem; | ||
} | ||
|
||
#[cfg(not(feature = "beacon-spec-mainnet"))] | ||
#[cfg(feature = "fast-runtime")] | ||
parameter_types! { | ||
pub const ChainForkVersions: ForkVersions = ForkVersions { | ||
genesis: Fork { | ||
|
@@ -586,30 +588,32 @@ parameter_types! { | |
epoch: 0, | ||
}, | ||
}; | ||
pub const MaxExecutionHeadersToKeep:u32 = 1000; | ||
} | ||
|
||
#[cfg(feature = "beacon-spec-mainnet")] | ||
#[cfg(not(feature = "fast-runtime"))] | ||
parameter_types! { | ||
pub const ChainForkVersions: ForkVersions = ForkVersions { | ||
genesis: Fork { | ||
version: [0, 0, 16, 32], // 0x00001020 | ||
version: [144, 0, 0, 111], // 0x90000069 | ||
epoch: 0, | ||
}, | ||
altair: Fork { | ||
version: [1, 0, 16, 32], // 0x01001020 | ||
epoch: 36660, | ||
version: [144, 0, 0, 112], // 0x90000070 | ||
epoch: 50, | ||
}, | ||
bellatrix: Fork { | ||
version: [2, 0, 16, 32], // 0x02001020 | ||
epoch: 112260, | ||
version: [144, 0, 0, 113], // 0x90000071 | ||
epoch: 100, | ||
}, | ||
capella: Fork { | ||
version: [3, 0, 16, 32], // 0x03001020 | ||
epoch: 162304, | ||
version: [144, 0, 0, 114], // 0x90000072 | ||
epoch: 56832, | ||
}, | ||
}; | ||
pub const MaxExecutionHeadersToKeep:u32 = 8192 * 2; | ||
} | ||
|
||
parameter_types! { | ||
pub const MaxExecutionHeadersToKeep: u32 = prod_or_fast!(8192 * 2, 1000); | ||
} | ||
Comment on lines
+615
to
617
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Macro |
||
|
||
impl snowbridge_ethereum_beacon_client::Config for Runtime { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no, I missed updating the fork versions for Sepolia. 😞 Thanks for catching this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we need this fix for the launch.