Skip to content

Commit 319fd95

Browse files
committed
miner: prevent double construction
1 parent b66ed1b commit 319fd95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

miner/worker.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,12 @@ func (miner *Miner) commitBlobTransaction(env *environment, tx *types.Transactio
318318
if err != nil {
319319
return err
320320
}
321-
env.txs = append(env.txs, tx.WithoutBlobTxSidecar())
321+
txNoBlob := tx.WithoutBlobTxSidecar()
322+
env.txs = append(env.txs, txNoBlob)
322323
env.receipts = append(env.receipts, receipt)
323324
env.sidecars = append(env.sidecars, sc)
324325
env.blobs += len(sc.Blobs)
325-
env.size += tx.WithoutBlobTxSidecar().Size()
326+
env.size += txNoBlob.Size()
326327
*env.header.BlobGasUsed += receipt.BlobGasUsed
327328
env.tcount++
328329
return nil

0 commit comments

Comments
 (0)