File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
eth/beacon/state_machines Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -385,11 +385,6 @@ def compute_cycle_transitions(
385
385
block ,
386
386
)
387
387
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
-
393
388
if cls .ready_for_dynasty_transition (crystallized_state , block ):
394
389
crystallized_state = cls .compute_dynasty_transition (
395
390
crystallized_state ,
@@ -407,7 +402,11 @@ def compute_per_cycle_transition(
407
402
"""
408
403
Initialize a new cycle.
409
404
"""
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
+
411
410
return crystallized_state , active_state
412
411
413
412
#
You can’t perform that action at this time.
0 commit comments