From 517f8fa6dbc2db403b2716757773a07fad7d8bdd Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Thu, 12 Jun 2025 13:18:52 +0200 Subject: [PATCH] correctly incorporate blob transaction size --- miner/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index e691307d21..780ad419bd 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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