feat: wire up proposer_preferences gossip topic - #9275
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d817b4893f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Code Review
This pull request implements the ProposerPreferences gossip topic and validation logic for the Gloas fork. It introduces a SeenProposerPreferences cache, error types, and signature verification routines. The feedback identifies a performance optimization in the validation flow to avoid unnecessary state fetches for duplicate messages and suggests increasing the expectedMessageRate in gossip scoring to accurately reflect network activity.
Performance Report✔️ no performance regression detected Full benchmark results
|
ensi321
left a comment
There was a problem hiding this comment.
Not fully reviewed but this is low risk to merge
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f5a3f03a30
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
going to merge this into |
wemeetagain
left a comment
There was a problem hiding this comment.
lgtm, everything looks good
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #9275 +/- ##
=========================================
Coverage 52.58% 52.58%
=========================================
Files 848 848
Lines 61136 61136
Branches 4505 4505
=========================================
Hits 32147 32147
Misses 28925 28925
Partials 64 64 🚀 New features to boost your workflow:
|
| ] = getTopicScoreParams(config, precomputedParams, { | ||
| topicWeight: PROPOSER_PREFERENCES_WEIGHT, | ||
| // Upper bound ~64 messages per epoch: one per proposer across the current + next epoch. | ||
| expectedMessageRate: 64 / SLOTS_PER_EPOCH, |
There was a problem hiding this comment.
could be more if there is a epoch boundary reorg which causes dependent root to change but this also depends on how clients will broadcast these, either way this seems fine
| dropOpts: {type: DropType.count, count: 1}, | ||
| }, | ||
| [GossipType.proposer_preferences]: { | ||
| maxLength: 1024, |
There was a problem hiding this comment.
this queue is likely way too long but not sure that really matters much
|
🎉 This PR is included in v1.43.0 🎉 |
No description provided.