Skip to content

Commit 4f1df00

Browse files
authored
Do not set deposit_requests_start_index in fork helper (#5329)
1 parent 6968869 commit 4f1df00

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

tests/core/pyspec/eth_consensus_specs/test/helpers/fork_transition.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
get_previous_fork_version,
3636
is_post_bellatrix,
3737
is_post_electra,
38-
is_post_fulu,
3938
is_post_gloas,
4039
)
4140
from eth_consensus_specs.test.helpers.proposer_slashings import (
@@ -199,14 +198,6 @@ def do_fork(
199198
assert state.slot % spec.SLOTS_PER_EPOCH == 0
200199
assert spec.get_current_epoch(state) == fork_epoch
201200

202-
# The Eth1 bridge transition is complete before the Fulu fork. Tests do not
203-
# process real deposit requests in pre-fork blocks, so model that completion here.
204-
if (
205-
is_post_fulu(post_spec)
206-
and state.deposit_requests_start_index == spec.UNSET_DEPOSIT_REQUESTS_START_INDEX
207-
):
208-
state.deposit_requests_start_index = state.eth1_data.deposit_count
209-
210201
state = get_upgrade_fn(post_spec, post_spec.fork)(state)
211202

212203
assert state.fork.epoch == fork_epoch
@@ -236,14 +227,6 @@ def do_fork_generate(
236227
assert state.slot % spec.SLOTS_PER_EPOCH == 0
237228
assert spec.get_current_epoch(state) == fork_epoch
238229

239-
# The Eth1 bridge transition is complete before the Fulu fork. Tests do not
240-
# process real deposit requests in pre-fork blocks, so model that completion here.
241-
if (
242-
is_post_fulu(post_spec)
243-
and state.deposit_requests_start_index == spec.UNSET_DEPOSIT_REQUESTS_START_INDEX
244-
):
245-
state.deposit_requests_start_index = state.eth1_data.deposit_count
246-
247230
yield "pre", state
248231

249232
state = get_upgrade_fn(post_spec, post_spec.fork)(state)

0 commit comments

Comments
 (0)