-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
A-utilsRelated to commonly used utilitiesRelated to commonly used utilitiesC-enhancementNew feature or requestNew feature or request
Description
Describe the feature
Shanghai and future forks will fork based on timestamp rather than block, and we currently only use a BlockNumber to distinguish between forks:
reth/crates/primitives/src/chain_spec.rs
Lines 79 to 82 in 2a77e08
| /// The active hard forks and their block numbers | |
| pub hardforks: BTreeMap<Hardfork, BlockNumber>, | |
This could be changed to another type such as:
enum ForkKind {
/// A fork's block number
Block(BlockNumber),
/// The unix timestamp of a fork
Time(u64),
}Additional context
The geth implementation of this has been merged in go-ethereum#25878
Metadata
Metadata
Assignees
Labels
A-utilsRelated to commonly used utilitiesRelated to commonly used utilitiesC-enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done