Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 276
fix(fiber): split DA Submit at Fibre's 128 MiB upload cap + duration log#3307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -302,7 +302,12 @@ func run(cli cliFlags) error { | ||
| // Fiber-tuned profile: BatchingStrategy=adaptive, BatchMaxDelay=1.5s, | ||
| // DA.BlockTime=1s, MaxPendingHeadersAndData=0, plus 120 MiB blob cap. | ||
| cfg.ApplyFiberDefaults() | ||
| block.SetMaxBlobSize(120 * 1024 * 1024) | ||
| // 100 MiB — bounded by Fibre's hard ~128 MiB per-upload cap (we | ||
| // hit `data size exceeds maximum 134217723` at 128 MiB - 5 B). | ||
| // Set the per-block data cap below that so each block_data item | ||
| // fits in a single Fibre upload after the submitter splits a | ||
| // multi-blob batch into ≤120 MiB chunks. | ||
| block.SetMaxBlobSize(100 * 1024 * 1024) | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏾 can we update the ldflags here for consistency: https://github.com/celestiaorg/x402-risotto/blob/main/scripts/run-stack.sh#L61 ? | ||
| cfg.P2P.ListenAddress = cli.p2pListen | ||
| cfg.P2P.DisableConnectionGater = true | ||
| cfg.RPC.Address = cli.rpcListen | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, https://github.com/evstack/ev-node/blob/main/block/internal/common/consts.go#L11-L12 would be pre-prefixes 120mb.
Nice catch!