diff --git a/core/types/transaction.go b/core/types/transaction.go index 534e68ab49..d513d3233c 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -322,8 +322,6 @@ func (tx *Transaction) Cost() *big.Int { total.Mul(total, tx.inner.gasPrice()) if blobtx, ok := tx.inner.(*BlobTx); ok { tmp := new(big.Int).SetUint64(blobtx.blobGas()) - // BlobFeeCap is uint256.Int; ToBig allocates, but blob txs are rarer and - // this still removes several other allocations compared to the old code. tmp.Mul(tmp, blobtx.BlobFeeCap.ToBig()) total.Add(total, tmp) }