Skip to content

Cleanup gossip params#10956

Open
tbenr wants to merge 1 commit into
Consensys:masterfrom
tbenr:codex/pubsub-rpc-limits
Open

Cleanup gossip params#10956
tbenr wants to merge 1 commit into
Consensys:masterfrom
tbenr:codex/pubsub-rpc-limits

Conversation

@tbenr

@tbenr tbenr commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

PR Description

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Note

Low Risk
Refactor preserves numeric limits; the only behavioral delta is explicitly configuring maxIDontWantMessageIds to 5000, which is a bounded gossip validation limit.

Overview
Refactors LibP2PParamsFactory so gossip inbound RPC repeated-field limits use named private static final constants instead of inline literals, matching the existing MAX_SUBSCRIPTIONS_PER_MESSAGE pattern.

Also sets maxIDontWantMessageIds to 5000 on the gossip params builder (new wiring in this change). A unit test asserts the published-message, subscription, graft/prune, IHAVE/IWANT, and IDONTWANT limits still match the expected values.

Reviewed by Cursor Bugbot for commit 58ca06d. Bugbot is set up for automated code reviews on this repo. Configure here.

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

LGTM

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.

2 participants