miner: remove blob related checks

This commit is contained in:
Manav Darji 2025-06-02 14:55:35 +05:30
parent 4ef7701a3e
commit 6462d2c3e0
No known key found for this signature in database
GPG key ID: A426F0124435F36E

View file

@ -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)