mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
miner: prevent double construction
This commit is contained in:
parent
b66ed1bc18
commit
319fd95ab5
1 changed files with 3 additions and 2 deletions
|
|
@ -318,11 +318,12 @@ func (miner *Miner) commitBlobTransaction(env *environment, tx *types.Transactio
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
env.txs = append(env.txs, tx.WithoutBlobTxSidecar())
|
txNoBlob := tx.WithoutBlobTxSidecar()
|
||||||
|
env.txs = append(env.txs, txNoBlob)
|
||||||
env.receipts = append(env.receipts, receipt)
|
env.receipts = append(env.receipts, receipt)
|
||||||
env.sidecars = append(env.sidecars, sc)
|
env.sidecars = append(env.sidecars, sc)
|
||||||
env.blobs += len(sc.Blobs)
|
env.blobs += len(sc.Blobs)
|
||||||
env.size += tx.WithoutBlobTxSidecar().Size()
|
env.size += txNoBlob.Size()
|
||||||
*env.header.BlobGasUsed += receipt.BlobGasUsed
|
*env.header.BlobGasUsed += receipt.BlobGasUsed
|
||||||
env.tcount++
|
env.tcount++
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue