Skip to content

Add dependent root check to proposer preferences validation (alpha.13) - #9760

Merged
mergify[bot] merged 6 commits into
unstablefrom
gloas-proposer-prefs-dependent-root
Aug 17, 2026
Merged

mergify[bot] merged 6 commits into
unstablefrom
gloas-proposer-prefs-dependent-root

Conversation

@eserilev

@eserilev eserilev commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

@eserilev
eserilev requested a review from jxs as a code owner August 6, 2026 06:45
@eserilev eserilev added gloas ready-for-review The code is ready for review labels Aug 6, 2026
@mergify

mergify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Some required checks have failed. Could you please take a look @eserilev? 🙏

@mergify mergify Bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Aug 6, 2026
@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from 6557de5 to dcecf6b Compare August 6, 2026 07:36
@eserilev
eserilev changed the base branch from unstable to ef-tests-target-branch-rule August 6, 2026 07:53
@mergify mergify Bot added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Aug 6, 2026
@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from dcecf6b to d5d70b0 Compare August 6, 2026 08:32
@mergify

mergify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Some required checks have failed. Could you please take a look @eserilev? 🙏

@mergify mergify Bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Aug 6, 2026
@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from d5d70b0 to f56251b Compare August 6, 2026 08:35
@pawanjay176
pawanjay176 changed the base branch from ef-tests-target-branch-rule to unstable August 6, 2026 21:17
});
}

let proto_array = fork_choice_read.proto_array().core_proto_array();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can this entire logic not live in a fork choice instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from 08ce7ae to 0a1c104 Compare August 7, 2026 05:25

@chong-he chong-he left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can see that the 2 checks in ethereum/consensus-specs#5443 are added in this PR. Specifically:

  • check for the dependent_root slot to be < start slot of an epoch (strictly less than), or Lighthouse will return error: DependentRootToRecent
  • check for function is_valid_dependent_root, failing which Lighthouse will return error: InvalidDependentRoot

Looks great overall, just some minor comments.

Comment thread beacon_node/beacon_chain/src/proposer_preferences_verification/mod.rs Outdated
Comment thread beacon_node/beacon_chain/src/proposer_preferences_verification/tests.rs Outdated
@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from 40fd451 to d92f47e Compare August 10, 2026 08:40

@chong-he chong-he left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, I see that Pawan's comment has been addressed where the get children code is moved to fork_choice.rs, which is cleaner.

@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch 3 times, most recently from 85ba2b1 to fa000a4 Compare August 12, 2026 11:26

@pawanjay176 pawanjay176 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, LGTM.

@mergify

mergify Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Queued — the merge queue status continues in this comment ↓.

@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from fa000a4 to 6cdb51b Compare August 13, 2026 10:56
@eserilev
eserilev force-pushed the gloas-proposer-prefs-dependent-root branch from 6a0c168 to da61d0b Compare August 17, 2026 12:33
@mergify

mergify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Merge Queue Status

This pull request spent 53 minutes 21 seconds in the queue, including 20 minutes 12 seconds running CI.

Reason

Pull request #9760 has been dequeued by @pawanjay176 with a dequeue command

Requeued — the merge queue status continues in this comment ↓.

@pawanjay176

Copy link
Copy Markdown
Member

@mergify dequeue

@mergify

mergify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Merge Queue Status

🛑 Queue command has been cancelled

@mergify mergify Bot added dequeued and removed dequeued labels Aug 17, 2026
@pawanjay176

Copy link
Copy Markdown
Member

@mergify dequeue

@pawanjay176 pawanjay176 added skip-ci Don't run the `test-suite` ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Aug 17, 2026
@mergify mergify Bot added dequeued and removed queued labels Aug 17, 2026
@mergify

mergify Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Merge Queue Status

This pull request spent 1 hour 24 minutes 3 seconds in the queue, including 50 minutes 56 seconds running CI.

Required conditions to merge

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

Labels

gloas ready-for-merge This PR is ready to merge. skip-ci Don't run the `test-suite`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants