From c2f2343d346587d7293e1cfeff886de8235fc514 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Mon, 27 May 2024 23:31:17 -0500 Subject: [PATCH] Halve EIP-4844 batch size to only fill 3 batches --- arbnode/batch_poster.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arbnode/batch_poster.go b/arbnode/batch_poster.go index ee00cdc618..f1dcc91884 100644 --- a/arbnode/batch_poster.go +++ b/arbnode/batch_poster.go @@ -216,8 +216,9 @@ var DefaultBatchPosterConfig = BatchPosterConfig{ Enable: false, DisableDapFallbackStoreDataOnChain: false, // This default is overridden for L3 chains in applyChainParameters in cmd/nitro/nitro.go - MaxSize: 100000, - Max4844BatchSize: blobs.BlobEncodableData*(params.MaxBlobGasPerBlock/params.BlobTxBlobGasPerBlob) - 2000, + MaxSize: 100000, + // Try to fill 3 blobs per batch + Max4844BatchSize: blobs.BlobEncodableData*(params.MaxBlobGasPerBlock/params.BlobTxBlobGasPerBlob)/2 - 2000, PollInterval: time.Second * 10, ErrorDelay: time.Second * 10, MaxDelay: time.Hour,