Skip to content

Commit c32c7df

Browse files
authored
fix: select correct fork version in fulu (#706)
1 parent 5e75100 commit c32c7df

File tree

5 files changed

+23
-21
lines changed

5 files changed

+23
-21
lines changed

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ autobenches = false
66
exclude = ["benches"]
77

88
[workspace.package]
9-
version = "0.9.2"
9+
version = "0.9.3"
1010

1111
[workspace]
1212
members = [

ethereum/consensus-core/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ pub struct Forks {
586586
pub capella: Fork,
587587
pub deneb: Fork,
588588
pub electra: Fork,
589-
pub fusaka: Fork,
589+
pub fulu: Fork,
590590
}
591591

592592
#[derive(Serialize, Deserialize, Debug, Default, Clone)]

ethereum/consensus-core/src/utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ pub fn calculate_fork_version<S: ConsensusSpec>(
2121
) -> FixedVector<u8, typenum::U4> {
2222
let epoch = slot / S::slots_per_epoch();
2323

24-
let version = if epoch >= forks.electra.epoch {
24+
let version = if epoch >= forks.fulu.epoch {
25+
forks.fulu.fork_version
26+
} else if epoch >= forks.electra.epoch {
2527
forks.electra.fork_version
2628
} else if epoch >= forks.deneb.epoch {
2729
forks.deneb.fork_version

ethereum/src/config/networks.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn mainnet() -> BaseConfig {
112112
epoch: 364032,
113113
fork_version: fixed_bytes!("05000000"),
114114
},
115-
fusaka: Fork {
115+
fulu: Fork {
116116
epoch: 411392,
117117
fork_version: fixed_bytes!("06000000"),
118118
},
@@ -162,7 +162,7 @@ pub fn sepolia() -> BaseConfig {
162162
epoch: 222464,
163163
fork_version: fixed_bytes!("90000074"),
164164
},
165-
fusaka: Fork {
165+
fulu: Fork {
166166
epoch: 272640,
167167
fork_version: fixed_bytes!("90000075"),
168168
},
@@ -212,7 +212,7 @@ pub fn holesky() -> BaseConfig {
212212
epoch: 115968,
213213
fork_version: fixed_bytes!("06017000"),
214214
},
215-
fusaka: Fork {
215+
fulu: Fork {
216216
epoch: 165120,
217217
fork_version: fixed_bytes!("07017000"),
218218
},
@@ -262,7 +262,7 @@ pub fn hoodi() -> BaseConfig {
262262
epoch: 2048,
263263
fork_version: fixed_bytes!("60000910"),
264264
},
265-
fusaka: Fork {
265+
fulu: Fork {
266266
epoch: 50688,
267267
fork_version: fixed_bytes!("70000910"),
268268
},

0 commit comments

Comments
 (0)