Skip to content

RPC/Overlay rate limits#1074

Merged
pashinov merged 14 commits into
masterfrom
rl
May 13, 2026
Merged

RPC/Overlay rate limits#1074
pashinov merged 14 commits into
masterfrom
rl

Conversation

@pashinov
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

🧪 Network Tests

To run network tests for this PR, use:

gh workflow run network-tests.yml -f pr_number=1074

Available test options:

  • Run all tests: gh workflow run network-tests.yml -f pr_number=1074
  • Run specific test: gh workflow run network-tests.yml -f pr_number=1074 -f test_selection=ping-pong

Test types: destroyable, ping-pong, one-to-many-internal-messages, fq-deploy, nft-index, persistent-sync

Results will be posted as workflow runs in the Actions tab.

@pashinov pashinov force-pushed the rl branch 2 times, most recently from 0ec338b to df747b4 Compare April 28, 2026 09:13
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 52.89575% with 244 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.93%. Comparing base (6c325bc) to head (689a029).

Files with missing lines Patch % Lines
core/src/blockchain_rpc/rate_limits.rs 0.00% 61 Missing ⚠️
rpc/src/endpoint/rate_limits.rs 34.88% 55 Missing and 1 partial ⚠️
rpc/src/endpoint/mod.rs 0.00% 43 Missing ⚠️
util/src/rate_limit.rs 85.21% 24 Missing and 10 partials ⚠️
network/src/overlay/rate_limits.rs 0.00% 33 Missing ⚠️
core/src/node/mod.rs 0.00% 6 Missing ⚠️
network/src/overlay/public_overlay.rs 70.00% 4 Missing and 2 partials ⚠️
rpc/src/endpoint/jrpc/stream.rs 75.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1074      +/-   ##
==========================================
- Coverage   59.01%   58.93%   -0.09%     
==========================================
  Files         454      459       +5     
  Lines       76372    76880     +508     
  Branches    76372    76880     +508     
==========================================
+ Hits        45072    45308     +236     
- Misses      29202    29455     +253     
- Partials     2098     2117      +19     

☔ 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.

Comment thread core/src/blockchain_rpc/rate_limits.rs Outdated
Comment thread core/src/blockchain_rpc/rate_limits.rs Outdated
Comment thread core/src/blockchain_rpc/rate_limits.rs Outdated
Comment thread core/src/blockchain_rpc/service.rs
Comment thread core/src/node/mod.rs Outdated
Comment thread rpc/src/endpoint/jrpc/stream.rs Outdated
Comment thread rpc/src/endpoint/rate_limits.rs Outdated
Comment thread rpc/src/endpoint/rate_limits.rs Outdated
Comment thread util/src/rate_limit.rs Outdated
Comment thread util/src/rate_limit.rs Outdated
@github-actions
Copy link
Copy Markdown

❌ CLI reference check failed in CI.

Please run just update_cli_reference, add the updated docs/cli-reference.md, and push the changes.

@pashinov pashinov force-pushed the rl branch 2 times, most recently from 0ef11b2 to 40a1f4d Compare May 12, 2026 15:53
Copy link
Copy Markdown
Member

@0xdeafbeef 0xdeafbeef left a comment

Choose a reason for hiding this comment

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

I would drop stream rate-limits. Rpc is either behind cloudflare proxy => ConnectInfo always receives cloudflare ip and eventually bans all clients. Or it's behind local proxy => same ban of all clients. You should either get real ip from headers or remove this functional, cause it does more harm than good.

Copy link
Copy Markdown
Member

@0xdeafbeef 0xdeafbeef left a comment

Choose a reason for hiding this comment

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

lgtm

@pashinov pashinov added this pull request to the merge queue May 13, 2026
Merged via the queue into master with commit af4b813 May 13, 2026
21 of 23 checks passed
@pashinov pashinov deleted the rl branch May 13, 2026 17:18
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