Skip to content

Conversation

@blindchaser
Copy link
Contributor

Describe your changes and provide context

Testing performed to validate your change

@github-actions
Copy link

github-actions bot commented Jan 21, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJan 21, 2026, 6:45 PM

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd299f3ec9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// Ethernet is 1500 - 20 -20 = 1460
// Source: https://stackoverflow.com/a/3074427/820520
MaxPacketMsgPayloadSize: 1400,
MaxPacketMsgPayloadSize: 1048576,

Choose a reason for hiding this comment

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

P1 Badge Prevent mixed-version disconnects on packet size

With the default MaxPacketMsgPayloadSize raised to 1MB, upgraded nodes will emit PacketMsg payloads up to 1MB, while older nodes still cap protoio.NewDelimitedReader using their 1400-byte max (via MConnection.maxPacketMsgSize()), so any message >1400 triggers a read error and drops the peer. This makes rolling upgrades or mixed-version networks unable to communicate unless there is negotiation or the default stays at 1400.

Useful? React with 👍 / 👎.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.00%. Comparing base (d392a81) to head (34b2105).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2725      +/-   ##
==========================================
- Coverage   44.02%   44.00%   -0.03%     
==========================================
  Files        1986     1986              
  Lines      162970   162970              
==========================================
- Hits        71753    71720      -33     
- Misses      84692    84725      +33     
  Partials     6525     6525              
Flag Coverage Δ
sei-chain 46.19% <ø> (-0.01%) ⬇️
sei-cosmos 38.05% <ø> (-0.01%) ⬇️
sei-db 68.72% <ø> (ø)
sei-tendermint 47.42% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 16 files with indirect coverage changes

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

// Ethernet is 1500 - 20 -20 = 1460
// Source: https://stackoverflow.com/a/3074427/820520
MaxPacketMsgPayloadSize: 1400,
MaxPacketMsgPayloadSize: 1048576,
Copy link
Contributor

Choose a reason for hiding this comment

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

how about we hardcode it instead? Changing this value to literally anything else breaks the protocol.

Copy link
Contributor

Choose a reason for hiding this comment

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

also remove the comment, it is not valid any more with this pr.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is hardcoded in DefaultP2PConfig(), and existing nodes won’t pick up changes unless they update config manually. unless we want to remove this param from config.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, removed.

@blindchaser blindchaser enabled auto-merge (squash) January 21, 2026 18:01
@blindchaser blindchaser merged commit 3889e9a into main Jan 21, 2026
38 of 39 checks passed
@blindchaser blindchaser deleted the yiren/p2p-config branch January 21, 2026 19:17
github-actions bot pushed a commit that referenced this pull request Jan 21, 2026
## Describe your changes and provide context

## Testing performed to validate your change

(cherry picked from commit 3889e9a)
@github-actions
Copy link

Successfully created backport PR for release/v6.3:

philipsu522 pushed a commit that referenced this pull request Jan 21, 2026
…MB (#2728)

Backport of #2725 to `release/v6.3`.

Co-authored-by: yirenz <blindchaser@users.noreply.github.com>
yzang2019 added a commit that referenced this pull request Jan 21, 2026
* main:
  update: set MaxPacketMsgPayloadSize use MB unit (#2729)
  fix: set max packet msg payload default to 1MB (#2725)
  Add CI workflow to build libwasmvm dynamic libraries (#2724)
  Made tcp connection context-aware (#2718)
  tcp multiplexer for sei giga (#2679)
  [STO-237] remove unused cosmos invariants (#2719)
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.

4 participants