mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core/types: reduce allocations in GasPriceCmp (#22456)
This commit is contained in:
parent
182670849e
commit
be87f769f6
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ func (tx *Transaction) RawSignatureValues() (v, r, s *big.Int) {
|
|||
|
||||
// GasPriceCmp compares the gas prices of two transactions.
|
||||
func (tx *Transaction) GasPriceCmp(other *Transaction) int {
|
||||
return tx.inner.gasPrice().Cmp(other.GasPrice())
|
||||
return tx.inner.gasPrice().Cmp(other.inner.gasPrice())
|
||||
}
|
||||
|
||||
// GasPriceIntCmp compares the gas price of the transaction against the given price.
|
||||
|
|
|
|||
Loading…
Reference in a new issue