Skip to content

Conversation

@michaelsproul
Copy link
Member

Proposed Changes

Continued cleanup of proposer index logic, this PR allows get_beacon_proposer_index to be called at the next epoch (post-Fulu), bringing it in line with get_beacon_proposer_indices after the changes in:

This is a safe change for Fulu due to the newly introduced lookahead.

Additional Info

This change is non-essential for correctness, as get_beacon_proposer_index is currently only called for the current epoch (state.slot() or block.slot() after state advance), and in tests.

@michaelsproul michaelsproul added blocked consensus An issue/PR that touches consensus code, such as state_processing or block verification. fulu Required for the upcoming Fulu hard fork v8.1.0 Post-Fulu release labels Oct 20, 2025
let epoch = slot.epoch(E::slots_per_epoch());
// TODO(EIP-7917): Explore allowing this function to be called with a slot one epoch in the future.
if epoch != self.current_epoch() {
if epoch != self.current_epoch() && epoch != self.next_epoch()? {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be more intuitive to move this if check after the "Post-Fulu" comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked consensus An issue/PR that touches consensus code, such as state_processing or block verification. fulu Required for the upcoming Fulu hard fork v8.1.0 Post-Fulu release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants