Skip to content

Strengthen RPC server defaults - #1065

Merged
shargon merged 7 commits into
master-n3from
enforce-rpc-server
Jun 6, 2026
Merged

shargon merged 7 commits into
master-n3from
enforce-rpc-server

Conversation

@shargon

@shargon shargon commented Jun 4, 2026

Copy link
Copy Markdown
Member
  • Reduce default MaxRequestBodySize from 5mb to 1mb.
  • Set MaxRequestBodySize in json file to help with configuration.
  • Prevent Transaction deserialization if it's bigger than expected.

vncoelho
vncoelho previously approved these changes Jun 4, 2026
@codecov

codecov Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.87%. Comparing base (dc2de4f) to head (f13d4d9).

Additional details and impacted files
@@              Coverage Diff              @@
##           master-n3    #1065      +/-   ##
=============================================
+ Coverage      49.86%   49.87%   +0.01%     
=============================================
  Files            278      278              
  Lines          16182    16187       +5     
  Branches        2069     2070       +1     
=============================================
+ Hits            8069     8074       +5     
  Misses          7555     7555              
  Partials         558      558              

☔ View full report in Codecov by Harness.
📢 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.

@shargon shargon changed the title Enforce RPC server defaults Strengthen RPC server defaults Jun 4, 2026
ajara87
ajara87 previously approved these changes Jun 4, 2026
Wi1l-B0t
Wi1l-B0t previously approved these changes Jun 4, 2026
Comment thread plugins/RpcServer/RpcServer.Node.cs Resolved
Comment thread plugins/RpcServer/RpcServer.Node.cs Resolved
Comment thread plugins/RpcServer/RpcServer.Node.cs Resolved
superboyiii and others added 2 commits June 5, 2026 19:16
Co-authored-by: Owen <38493437+superboyiii@users.noreply.github.com>
@shargon
shargon dismissed stale reviews from vncoelho, Wi1l-B0t, and ajara87 via 3734f19 June 5, 2026 13:58
Co-authored-by: Owen <38493437+superboyiii@users.noreply.github.com>
Comment thread plugins/RpcServer/RpcServer.Node.cs Resolved
Comment thread plugins/RpcServer/RpcServer.Node.cs Resolved

@superboyiii superboyiii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@shargon
shargon merged commit 75aa4c0 into master-n3 Jun 6, 2026
7 checks passed
@shargon
shargon deleted the enforce-rpc-server branch June 6, 2026 22:59
shargon pushed a commit that referenced this pull request Jun 9, 2026
If transaction has invalid size, -509 code should be returned by the RPC
server according to the NEP-23. The behaviour was changed by
#1065.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants