From 6462d2c3e0ba097bc12f295e9087ec08ebfed296 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Mon, 2 Jun 2025 14:55:35 +0530 Subject: [PATCH] miner: remove blob related checks --- miner/worker.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 259139f215..0b2795b110 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1019,17 +1019,6 @@ mainloop: continue } - // Most of the blob gas logic here is agnostic as to if the chain supports - // blobs or not, however the max check panics when called on a chain without - // a defined schedule, so we need to verify it's safe to call. - if w.chainConfig.IsCancun(env.header.Number) { - left := eip4844.MaxBlobsPerBlock(w.chainConfig, env.header.Time) - env.blobs - if left < int(ltx.BlobGas/params.BlobTxBlobGasPerBlob) { - log.Trace("Not enough blob space left for transaction", "hash", ltx.Hash, "left", left, "needed", ltx.BlobGas/params.BlobTxBlobGasPerBlob) - txs.Pop() - continue - } - } // If we don't receive enough tip for the next transaction, skip the account if ptip.Cmp(minTip) < 0 { log.Trace("Not enough tip for transaction", "hash", ltx.Hash, "tip", ptip, "needed", minTip)