Skip to content

Commit

Permalink
Merge pull request #2027 from OffchainLabs/l3-speed-up-inbox-reader
Browse files Browse the repository at this point in the history
Speed up the inbox reader for L3 chains
  • Loading branch information
joshuacolvin0 authored Dec 16, 2023
2 parents 3221e11 + e424356 commit 5185a6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/nitro/nitro.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,12 @@ func applyChainParameters(ctx context.Context, k *koanf.Koanf, chainId uint64, c
safeBatchSize := l2MaxTxSize - bufferSpace
chainDefaults["node.batch-poster.max-size"] = safeBatchSize
chainDefaults["execution.sequencer.max-tx-data-size"] = safeBatchSize - bufferSpace
// Arbitrum chains produce blocks more quickly, so the inbox reader should read more blocks at once.
// Even if this is too large, on error the inbox reader will reset its query size down to the default.
chainDefaults["node.inbox-reader.max-blocks-to-read"] = 10_000
}
if chainInfo.DasIndexUrl != "" {
chainDefaults["node.batch-poster.max-size"] = 1000000
chainDefaults["node.batch-poster.max-size"] = 1_000_000
}
err = k.Load(confmap.Provider(chainDefaults, "."), nil)
if err != nil {
Expand Down

0 comments on commit 5185a6e

Please sign in to comment.