Skip to content

Commit be87f76

Browse files
core/types: reduce allocations in GasPriceCmp (#22456)
1 parent 1826708 commit be87f76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/types/transaction.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func (tx *Transaction) RawSignatureValues() (v, r, s *big.Int) {
293293

294294
// GasPriceCmp compares the gas prices of two transactions.
295295
func (tx *Transaction) GasPriceCmp(other *Transaction) int {
296-
return tx.inner.gasPrice().Cmp(other.GasPrice())
296+
return tx.inner.gasPrice().Cmp(other.inner.gasPrice())
297297
}
298298

299299
// GasPriceIntCmp compares the gas price of the transaction against the given price.

0 commit comments

Comments
 (0)