correctly incorporate blob transaction size

This commit is contained in:
Jared Wasinger 2025-06-12 13:18:52 +02:00 committed by Felix Lange
parent 85290d0ca6
commit 517f8fa6db

View file

@ -305,7 +305,7 @@ func (miner *Miner) commitTransaction(env *environment, tx *types.Transaction) e
}
env.txs = append(env.txs, tx)
env.receipts = append(env.receipts, receipt)
env.size += tx.WithoutBlobTxSidecar().Size()
env.size += tx.Size()
env.tcount++
return nil
}
@ -331,6 +331,7 @@ func (miner *Miner) commitBlobTransaction(env *environment, tx *types.Transactio
env.receipts = append(env.receipts, receipt)
env.sidecars = append(env.sidecars, sc)
env.blobs += len(sc.Blobs)
env.size += tx.WithoutBlobTxSidecar().Size()
*env.header.BlobGasUsed += receipt.BlobGasUsed
env.tcount++
return nil