Skip to content

Backport is_parent_strong and is_head_weak changes to Phase0#5401

Open
mkalinin wants to merge 1 commit into
ethereum:masterfrom
mkalinin:backport-gloas-fc
Open

Backport is_parent_strong and is_head_weak changes to Phase0#5401
mkalinin wants to merge 1 commit into
ethereum:masterfrom
mkalinin:backport-gloas-fc

Conversation

@mkalinin

Copy link
Copy Markdown
Contributor

Backports is_parent_strong and is_head_weak Gloas code to Phase0, specifically:

  • Replace get_weight with get_attestation_score which in the case of get_proposer_head shouldn’t change the result because the difference between the two is whether proposer boost is counted or not which in the case of proposer reorg isn’t relevant because the head is late and no proposer boost is applied
  • Count head committee equivocating validators towards head support

There seems to be no reason for these changes to be not applied since Phase0. cc @potuz

@mkalinin mkalinin force-pushed the backport-gloas-fc branch from 99d00d7 to cdb0698 Compare June 26, 2026 11:15
@mkalinin mkalinin changed the title Backport is_parent_strong and is_head_weak Gloas changes to Phase0 Backport is_parent_strong and is_head_weak changes to Phase0 Jun 26, 2026
@jtraglia

Copy link
Copy Markdown
Member

Count head committee equivocating validators towards head support

If implemented now, is there any risk in this behavior change causes issues on mainnet?

@mkalinin

Copy link
Copy Markdown
Contributor Author

Count head committee equivocating validators towards head support

If implemented now, is there any risk in this behavior change causes issues on mainnet?

i don't think so. it might result in clients handling proposer reorg a bit differently which should be fine as it doesn't affect attesting at all; moreover, differences in its handling could only happen in an edge case where a decent amount of head's committee stake is slashed

@jtraglia jtraglia 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.

LGTM. I would appreciate reviews from clients (eg @nflaig, @potuz, @michaelsproul) before merging though.

@michaelsproul

michaelsproul commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

As far as I recall the equivocating balance stuff is a bit hacky in our Gloas code (and the source of compliance test failures). We might rework our impl and apply the fixes pre-Gloas, or we might just keep it confined to post-Gloas for simplicity.

We are planning to delete pre-Gloas fork choice as soon as the fork is live, so I'm reluctant to put more engineering work into something that will be deleted so soon.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants