From bd299f3ec94d6a46611ab618d90606e17af1914d Mon Sep 17 00:00:00 2001 From: blindchaser Date: Wed, 21 Jan 2026 11:10:52 -0500 Subject: [PATCH 1/2] fix: set max packet msg payload max to 1MB --- sei-tendermint/config/config.go | 2 +- sei-tendermint/config/toml.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sei-tendermint/config/config.go b/sei-tendermint/config/config.go index 761d9f1d65..6021406cf1 100644 --- a/sei-tendermint/config/config.go +++ b/sei-tendermint/config/config.go @@ -707,7 +707,7 @@ func DefaultP2PConfig() *P2PConfig { // optional header fields are used) and thus the max for (non-Jumbo frame) // Ethernet is 1500 - 20 -20 = 1460 // Source: https://stackoverflow.com/a/3074427/820520 - MaxPacketMsgPayloadSize: 1400, + MaxPacketMsgPayloadSize: 1048576, SendRate: 20971520, // 20 MiB/s per connection RecvRate: 20971520, // 20 MiB/s per connection PexReactor: true, diff --git a/sei-tendermint/config/toml.go b/sei-tendermint/config/toml.go index 9a98b4f21c..950a17dffc 100644 --- a/sei-tendermint/config/toml.go +++ b/sei-tendermint/config/toml.go @@ -312,6 +312,7 @@ flush-throttle-timeout = "{{ .P2P.FlushThrottleTimeout }}" # Maximum size of a message packet payload, in bytes # TODO: Remove once MConnConnection is removed. +# WARNING: coordinate before changing this default; impacts network interoperability max-packet-msg-payload-size = {{ .P2P.MaxPacketMsgPayloadSize }} # Rate at which packets can be sent, in bytes/second From a54d09ec780bd6d57682ff940453567405b173f2 Mon Sep 17 00:00:00 2001 From: blindchaser Date: Wed, 21 Jan 2026 12:42:32 -0500 Subject: [PATCH 2/2] remove comment --- sei-tendermint/config/config.go | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/sei-tendermint/config/config.go b/sei-tendermint/config/config.go index 6021406cf1..b58ca8c49b 100644 --- a/sei-tendermint/config/config.go +++ b/sei-tendermint/config/config.go @@ -702,20 +702,15 @@ func DefaultP2PConfig() *P2PConfig { MaxConnections: 100, MaxIncomingConnectionAttempts: 100, FlushThrottleTimeout: 100 * time.Millisecond, - // The MTU (Maximum Transmission Unit) for Ethernet is 1500 bytes. - // The IP header and the TCP header take up 20 bytes each at least (unless - // optional header fields are used) and thus the max for (non-Jumbo frame) - // Ethernet is 1500 - 20 -20 = 1460 - // Source: https://stackoverflow.com/a/3074427/820520 - MaxPacketMsgPayloadSize: 1048576, - SendRate: 20971520, // 20 MiB/s per connection - RecvRate: 20971520, // 20 MiB/s per connection - PexReactor: true, - AllowDuplicateIP: false, - HandshakeTimeout: 10 * time.Second, - DialTimeout: 3 * time.Second, - TestDialFail: false, - QueueType: "simple-priority", + MaxPacketMsgPayloadSize: 1048576, + SendRate: 20971520, // 20 MiB/s per connection + RecvRate: 20971520, // 20 MiB/s per connection + PexReactor: true, + AllowDuplicateIP: false, + HandshakeTimeout: 10 * time.Second, + DialTimeout: 3 * time.Second, + TestDialFail: false, + QueueType: "simple-priority", } }