Skip to content
2 changes: 2 additions & 0 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ const (
DefaultAllowUnprotectedTxs = false

// DefaultBatchRequestLimit is the default maximum batch request limit.
// https://github.com/ethereum/go-ethereum/blob/v1.15.11/node/defaults.go#L67
DefaultBatchRequestLimit = 1000

// DefaultBatchResponseMaxSize is the default maximum batch response size.
// https://github.com/ethereum/go-ethereum/blob/v1.15.11/node/defaults.go#L68
DefaultBatchResponseMaxSize = 25 * 1000 * 1000

// DefaultMaxOpenConnections represents the amount of open connections (unlimited = 0)
Expand Down
6 changes: 6 additions & 0 deletions server/config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ metrics-address = "{{ .JSONRPC.MetricsAddress }}"
# Upgrade height for fix of revert gas refund logic when transaction reverted.
fix-revert-gas-refund-height = {{ .JSONRPC.FixRevertGasRefundHeight }}

# Maximum number of requests in a batch.
batch-request-limit = {{ .JSONRPC.BatchRequestLimit }}

# Maximum number of bytes returned from a batched call.
batch-response-max-size = {{ .JSONRPC.BatchResponseMaxSize }}

# Enabled profiling in the debug namespace
enable-profiling = {{ .JSONRPC.EnableProfiling }}

Expand Down
Loading