Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lion - dapplion <[email protected]>
  • Loading branch information
hwwhww and dapplion authored Jan 18, 2024
1 parent 4fe36de commit c9c43e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ def test_non_empty_historical_roots(state, fork_epoch, spec, post_spec, pre_tag,
"""
Test with non-empty pre-state `state.historical_roots`.
Since Capella froze `historical_roots`, Capealla spec doesn't invoke `process_historical_roots_update` anymore.
Since Capella froze `historical_roots`, Capella spec doesn't invoke `process_historical_roots_update` anymore.
Therefore, we need to fill in `historical_roots` with non-empty value.
"""
# fill in historical_roots with non-empty values
pre_historical_roots = [b'\x56' * 32 for _ in range(spec.SLOTS_PER_HISTORICAL_ROOT)]
pre_historical_roots = [b'\x56' * 32]
state.historical_roots = pre_historical_roots

transition_until_fork(spec, state, fork_epoch)
Expand Down

0 comments on commit c9c43e8

Please sign in to comment.