Skip to content

Commit 740593c

Browse files
authored
chore: add missing total difficulty consts (alloy-rs/hardforks#76)
1 parent 0912f27 commit 740593c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/hardforks/src/ethereum/mainnet.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ pub const MAINNET_PRAGUE_BLOCK: u64 = 22_431_084;
4242
/// Paris hard fork activation terminal total difficulty is 58_750_000_000_000_000_000_000_U256.
4343
pub const MAINNET_PARIS_TTD: U256 = uint!(58_750_000_000_000_000_000_000_U256);
4444

45+
/// The final total difficulty of mainnet
46+
pub const MAINNET_PARIS_FINAL_TD: U256 = uint!(58_750_003_716_598_352_816_469U256);
47+
4548
/// Frontier hard fork activation timestamp is 1438226773.
4649
pub const MAINNET_FRONTIER_TIMESTAMP: u64 = 1_438_226_773;
4750
/// Homestead hard fork activation timestamp is 1457938193.

crates/hardforks/src/ethereum/sepolia.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ use alloy_primitives::{U256, uint};
66
pub const SEPOLIA_PARIS_BLOCK: u64 = 1_450_409;
77
/// Paris sepolia hard fork activation terminal total difficulty is 17_000_000_000_000_000_U256.
88
pub const SEPOLIA_PARIS_TTD: U256 = uint!(17_000_000_000_000_000_U256);
9+
10+
/// The final total difficulty of sepolia
11+
pub const SEPOLIA_PARIS_FINAL_TD: U256 = uint!(17_000_018_015_853_232U256);
12+
913
/// Paris sepolia fork block is 1735371. See [`ForkCondition::TTD`](crate::ForkCondition::TTD).
1014
pub const SEPOLIA_PARIS_FORK_BLOCK: u64 = 1_735_371;
1115
/// Shanghai sepolia hard fork activation block is 2990908.

0 commit comments

Comments
 (0)