Skip to content

Commit

Permalink
Simpler underflow protection
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Jun 14, 2023
1 parent 6574f38 commit d5d43a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specs/_features/whisk/fork.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def upgrade_to_whisk(pre: capella.BeaconState) -> BeaconState:

# Do a candidate selection followed by a proposer selection so that we have proposers for the upcoming day
# Use an old epoch when selecting candidates so that we don't get the same seed as in the next candidate selection
initial_candidate_gap = WHISK_PROPOSER_SELECTION_GAP + Epoch(1)
select_whisk_candidate_trackers(post, max(epoch, initial_candidate_gap) - initial_candidate_gap)
select_whisk_candidate_trackers(post, max(0, epoch - WHISK_PROPOSER_SELECTION_GAP - 1))
select_whisk_proposer_trackers(post, epoch)

# Do a final round of candidate selection.
Expand Down

0 comments on commit d5d43a9

Please sign in to comment.