Skip to content

Use proposer preferences cache for payload attributes after Gloas#16620

Merged
terencechain merged 3 commits intodevelopfrom
potuz/proposer-preferences-payload
Apr 8, 2026
Merged

Use proposer preferences cache for payload attributes after Gloas#16620
terencechain merged 3 commits intodevelopfrom
potuz/proposer-preferences-payload

Conversation

@potuz
Copy link
Copy Markdown
Contributor

@potuz potuz commented Mar 31, 2026

Summary

  • Adds ProposerPreferencesCache to the blockchain service so trackedProposer() can use Gloas gossip preferences (fee recipient, gas limit) when constructing payload attributes for FCU
  • When PrepareAllPayloads is enabled, checks the preferences cache first, falling back to the default burn address
  • When a validator is tracked, checks the preferences cache to override the tracked validator's fee recipient
  • Adds GasLimit field to TrackedValidator struct, populated from proposer preferences

potuz and others added 3 commits March 31, 2026 15:34
When constructing payload attributes for FCU, check the
ProposerPreferencesCache (populated via Gloas gossip) for fee recipient
before falling back to TrackedValidatorsCache or the PrepareAllPayloads
default. This ensures payloads built with the --builder flag use the
correct fee recipient after the Gloas fork.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@james-prysm james-prysm left a comment

Choose a reason for hiding this comment

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

another thing to remember when addressing #16545

I'm ok for now if this speeds things up on development side

if pref, ok := s.proposerPreference(slot); ok {
return pref, true
}
return val, val.Active
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Because we added GasLimit to TrackedValidator, im not sure here before return val, val.Active, you want to set val.GasLimit to DefaultBuilderGasLimit as a fallback.
The concern is pre mature, but i think is a valid one. Also ok if no action is taken

@@ -0,0 +1,2 @@
### Fixed
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I dont think it's Fixed. It hsould be Added or Changed.. This isn't fixing a bug, it's adding new functionality 🐵

@terencechain terencechain added this pull request to the merge queue Apr 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 8, 2026
@terencechain terencechain added this pull request to the merge queue Apr 8, 2026
Merged via the queue into develop with commit f3dfcba Apr 8, 2026
18 checks passed
@terencechain terencechain deleted the potuz/proposer-preferences-payload branch April 8, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants