From 5919b26987ee340280be050abb09afeb0f66e67e Mon Sep 17 00:00:00 2001 From: blockchaindevsh Date: Fri, 27 Dec 2024 09:05:33 +0800 Subject: [PATCH] add comment --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index ea0938b4b5..d2859b8679 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -396,7 +396,7 @@ func (miner *Miner) commitBlobTransaction(env *environment, tx *types.Transactio // 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(tx.BlobHashes()))*params.BlobTxBlobGasPerBlob > params.MaxBlobGasPerBlock { + if (env.blobs+len(tx.BlobHashes() /* we changed this part, otherwise it's panic when deriving */))*params.BlobTxBlobGasPerBlob > params.MaxBlobGasPerBlock { return errors.New("max data blobs reached") } receipt, err := miner.applyTransaction(env, tx)