Skip to content

fix: sei legacy http batch#3160

Merged
masih merged 6 commits into
mainfrom
mojtaba/plt-227-fix-sei-legacy-http-batch
Apr 2, 2026
Merged

fix: sei legacy http batch#3160
masih merged 6 commits into
mainfrom
mojtaba/plt-227-fix-sei-legacy-http-batch

Conversation

@mojtaba-esk

Copy link
Copy Markdown
Contributor

Describe your changes and provide context

Context: PLT-227
Fixes PLT-227

Testing performed to validate your change

@mojtaba-esk mojtaba-esk requested review from masih and sei-will April 1, 2026 15:31
@mojtaba-esk mojtaba-esk self-assigned this Apr 1, 2026
@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 1, 2026, 4:26 PM

@codecov

codecov Bot commented Apr 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.74074% with 53 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.76%. Comparing base (3ed3bf2) to head (6ae85d1).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
evmrpc/sei_legacy_http.go 60.44% 41 Missing and 12 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             main    #3160    +/-   ##
========================================
  Coverage   58.75%   58.76%            
========================================
  Files        2095     2095            
  Lines      173551   173665   +114     
========================================
+ Hits       101965   102046    +81     
- Misses      62465    62492    +27     
- Partials     9121     9127     +6     
Flag Coverage Δ
sei-chain-pr 66.93% <60.74%> (?)
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
integration_test/evm_module/rpc_io_test/io.go 74.64% <100.00%> (ø)
evmrpc/sei_legacy_http.go 69.31% <60.44%> (+1.31%) ⬆️
🚀 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.

@mojtaba-esk mojtaba-esk changed the title Mojtaba/plt 227 fix sei legacy http batch fix: sei legacy http batch Apr 1, 2026
Comment thread evmrpc/sei_legacy_http.go
// seiLegacyHTTPMaxBody matches github.com/ethereum/go-ethereum/rpc.defaultBodyLimit (5MiB), the
// default HTTP request body cap used by rpc.Server before ServeHTTP. The legacy gate must not
// read more than the inner JSON-RPC stack will accept (see rpc.Server.SetHTTPBodyLimit).
const seiLegacyHTTPMaxBody = 5 * 1024 * 1024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

FWIW i find the << trick to be easer to read ( but that's just me)

@masih masih added this pull request to the merge queue Apr 2, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 2, 2026
@masih masih added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit d3f22bd Apr 2, 2026
40 checks passed
@masih masih deleted the mojtaba/plt-227-fix-sei-legacy-http-batch branch April 2, 2026 07:36
@seidroid

seidroid Bot commented Apr 2, 2026

Copy link
Copy Markdown

Created backport PR for release/v6.4:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-3160-to-release/v6.4
git worktree add --checkout .worktree/backport-3160-to-release/v6.4 backport-3160-to-release/v6.4
cd .worktree/backport-3160-to-release/v6.4
git reset --hard HEAD^
git cherry-pick -x d3f22bde2f0d9d9b4c758a2a785f2a208d8f3932
git push --force-with-lease

masih added a commit that referenced this pull request Apr 2, 2026
Backport of #3160 to `release/v6.4`.

---------

Co-authored-by: Moji <mojtaba-esk@users.noreply.github.com>
Co-authored-by: Masih H. Derkani <m@derkani.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants