mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
miner: remove blob related checks
This commit is contained in:
parent
4ef7701a3e
commit
6462d2c3e0
1 changed files with 0 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue