Skip to content

Larger tx announce queue for trusted peers#1781

Merged
cffls merged 2 commits intodevelopfrom
larger_tx_announce_queue
Sep 25, 2025
Merged

Larger tx announce queue for trusted peers#1781
cffls merged 2 commits intodevelopfrom
larger_tx_announce_queue

Conversation

@cffls
Copy link
Copy Markdown
Contributor

@cffls cffls commented Sep 19, 2025

Description

Allows the node to allocate more buffer (x10) for txn announcements for trusted and static peers. Larger queue reduces the possibility a transaction might get dropped by the node when there is a surge of txns in the network.

Changes

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Changes only for a subset of nodes

Allows the node to allocate more buffer (x10) for txn announcements for trusted and static peers. Larger queue reduces the possibility a transaction might get dropped by the node when there is a surge of txns in the network.
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 19, 2025

Codecov Report

❌ Patch coverage is 28.57143% with 5 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (v2.3.0-candidate@aee88a8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
eth/protocols/eth/broadcast.go 28.57% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##             v2.3.0-candidate    #1781   +/-   ##
===================================================
  Coverage                    ?   48.29%           
===================================================
  Files                       ?      828           
  Lines                       ?   136502           
  Branches                    ?        0           
===================================================
  Hits                        ?    65921           
  Misses                      ?    66333           
  Partials                    ?     4248           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@pratikspatil024 pratikspatil024 left a comment

Choose a reason for hiding this comment

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

LGTM, maybe worth adding a comment stating that this is specific to Polygon, so that it should not be removed accidentally during upstream merge.

@cffls
Copy link
Copy Markdown
Contributor Author

cffls commented Sep 23, 2025

LGTM, maybe worth adding a comment stating that this is specific to Polygon, so that it should not be removed accidentally during upstream merge.

Thanks, addressed in the comment.

@sonarqubecloud
Copy link
Copy Markdown

@cffls cffls changed the base branch from v2.3.0-candidate to develop September 25, 2025 17:08
@cffls cffls merged commit c99659b into develop Sep 25, 2025
11 of 13 checks passed

queueLimit := maxQueuedTxAnns
if p.IsTrusted() || p.IsStatic() {
queueLimit = maxQueuedTxAnnsTrusted
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.

Should we have just considered 10x maxQueuedTxAnns rather than defining another const?

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.

4 participants