mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
correctly incorporate blob transaction size
This commit is contained in:
parent
85290d0ca6
commit
517f8fa6db
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue