From d716c1c45f252a9d42530ca699aa29f17aa60a2c Mon Sep 17 00:00:00 2001 From: lightclient Date: Tue, 29 Aug 2023 14:05:42 -0700 Subject: [PATCH] miner: fix 4844 max check --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 711149232b..05524d8268 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -761,7 +761,7 @@ func (w *worker) commitBlobTransaction(env *environment, tx *types.Transaction) // isn't really a better place right now. The blob gas limit is checked at block validation time // and not during execution. This means core.ApplyTransaction will not return an error if the // tx has too many blobs. So we have to explicitly check it here. - if (env.blobs+len(sc.Blobs))*params.BlobTxBlobGasPerBlob > params.MaxBlobGasPerBlock { + if (env.blobs + len(sc.Blobs)) > params.MaxBlobGasPerBlock/params.BlobTxBlobGasPerBlob { return nil, errors.New("max data blobs reached") }