Skip to content

Commit 1bc9e3e

Browse files
committed
fix(evnode-fibre): cap per-block data at 100 MiB to fit a Fibre upload
Companion to the submitter chunking fix. The submitter can split a multi-blob batch into ≤120 MiB Fibre uploads, but a *single* block_data item that exceeds 128 MiB still ends up alone in its own chunk and fails server-side ("blob size exceeds maximum allowed size"). Lower the per-block cap to 100 MiB so under high-throughput txsim a single block can't grow past Fibre's hard limit, and update the comment to explain the relationship between this cap and Fibre's ~128 MiB upload reject threshold.
1 parent cb167b3 commit 1bc9e3e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • tools/celestia-node-fiber/cmd/evnode-fibre

tools/celestia-node-fiber/cmd/evnode-fibre/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ func run(cli cliFlags) error {
302302
// Fiber-tuned profile: BatchingStrategy=adaptive, BatchMaxDelay=1.5s,
303303
// DA.BlockTime=1s, MaxPendingHeadersAndData=0, plus 120 MiB blob cap.
304304
cfg.ApplyFiberDefaults()
305-
block.SetMaxBlobSize(120 * 1024 * 1024)
305+
// 100 MiB — bounded by Fibre's hard ~128 MiB per-upload cap (we
306+
// hit `data size exceeds maximum 134217723` at 128 MiB - 5 B).
307+
// Set the per-block data cap below that so each block_data item
308+
// fits in a single Fibre upload after the submitter splits a
309+
// multi-blob batch into ≤120 MiB chunks.
310+
block.SetMaxBlobSize(100 * 1024 * 1024)
306311
cfg.P2P.ListenAddress = cli.p2pListen
307312
cfg.P2P.DisableConnectionGater = true
308313
cfg.RPC.Address = cli.rpcListen

0 commit comments

Comments
 (0)