Skip to content

Commit 082be9e

Browse files
committed
Move the stub to compute_per_cycle_transition
1 parent f544b1a commit 082be9e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

eth/beacon/state_machines/base.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,6 @@ def compute_cycle_transitions(
385385
block,
386386
)
387387

388-
# TODO: it's a STUB before we implement compute_per_cycle_transition
389-
crystallized_state = crystallized_state.copy(
390-
last_state_recalc=crystallized_state.last_state_recalc + cls.config.CYCLE_LENGTH
391-
)
392-
393388
if cls.ready_for_dynasty_transition(crystallized_state, block):
394389
crystallized_state = cls.compute_dynasty_transition(
395390
crystallized_state,
@@ -407,7 +402,11 @@ def compute_per_cycle_transition(
407402
"""
408403
Initialize a new cycle.
409404
"""
410-
# TODO
405+
# TODO: it's a STUB before we implement compute_per_cycle_transition
406+
crystallized_state = crystallized_state.copy(
407+
last_state_recalc=crystallized_state.last_state_recalc + cls.config.CYCLE_LENGTH
408+
)
409+
411410
return crystallized_state, active_state
412411

413412
#

0 commit comments

Comments
 (0)