consider tx without sidecar when accounting for the size it will contribute to the RLP-encoded block

This commit is contained in:
Jared Wasinger 2025-06-11 18:06:16 +02:00 committed by Felix Lange
parent 6caa1eccdc
commit 7288192c88

View file

@ -305,7 +305,7 @@ func (miner *Miner) commitTransaction(env *environment, tx *types.Transaction) e
} }
env.txs = append(env.txs, tx) env.txs = append(env.txs, tx)
env.receipts = append(env.receipts, receipt) env.receipts = append(env.receipts, receipt)
env.size += tx.Size() env.size += tx.WithoutBlobTxSidecar().Size()
env.tcount++ env.tcount++
return nil return nil
} }