Skip to content

Precompute head for update_proposer_boost_root#5300

Merged
jtraglia merged 4 commits into
ethereum:masterfrom
mkalinin:fix-pb-update
May 27, 2026
Merged

Precompute head for update_proposer_boost_root#5300
jtraglia merged 4 commits into
ethereum:masterfrom
mkalinin:fix-pb-update

Conversation

@mkalinin

@mkalinin mkalinin commented May 27, 2026

Copy link
Copy Markdown
Contributor

Fixes #5286 by computing the head before the block is added to the Store.

Depends on #5249

@github-actions github-actions Bot added the gloas label May 27, 2026
@jtraglia jtraglia changed the title Precompute head for update_proposer_boost_root Precompute head for update_proposer_boost_root May 27, 2026

@potuz potuz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would also add the dependent root path to this PR, but it looks good to me anyway.

@jtraglia

Copy link
Copy Markdown
Member

I would also add the dependent root path to this PR, but it looks good to me anyway.

We can handle this in another PR.

@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 as well. Thanks!

@jtraglia jtraglia merged commit 1b3086c into ethereum:master May 27, 2026
15 checks passed
jtraglia pushed a commit that referenced this pull request Jun 1, 2026
Follow up to #5300.

Switches from `proposer_index` to `dependent_root` check when applying
proposer boost. There is an edge case where `proposer_index` is the same
on the two competing chains with different dependent roots, in this case
applying PB to the diverged chain can be exploited. This PR is a fix for
that edge case.

There are two ways how `dependent_root` can be computed: 1) with the
block tree, root and store time 2) with the post-state of a block. (1)
since we do this computation in the FC context.
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.

Unintended self-reference in update_proposer_boost_root?

3 participants