feat(conductor): add configurable HTTP body limit for large execution payloads #18693
+216
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Sequencer fails to commit large blocks to Conductor with
413 Request Entity Too Large:Root Cause: Default HTTP body limit is 5MB, insufficient for blocks with 150+ transactions (9.3MB).
Call Stack & Evidence
op-conductor/cmd/main.go:25main()starts conductorservice.go:117initRPCServer()called byinit()service.go:435rpcServer.Start()starts servicego.modgo-ethereum→okx/op-gethhandler.go:12import "github.com/ethereum/go-ethereum/rpc"handler.go:150rpc.NewServer()creates op-geth Serverhandler.go:155srv.SetHTTPBodyLimit(b.httpBodyLimit)op-geth/rpc/server.go:96SetHTTPBodyLimit()methodop-geth/rpc/http.go:345Execution Flow
Dependency Chain
Solution
Increase Conductor's HTTP body limit to 64MB by leveraging op-geth's
SetHTTPBodyLimit()API.Changes
WithHTTPBodyLimit()option inhandler_options.gosrv.SetHTTPBodyLimit()inhandler.goservice.go:278sequencer.goConfiguration
# Flag, default is 5 MB - --rpc.http-body-limit-mb=64