From be87f769f676cbe3bf028e856160396ed08c64fc Mon Sep 17 00:00:00 2001
From: Marius van der Wijden <m.vanderwijden@live.de>
Date: Mon, 8 Mar 2021 14:23:28 +0100
Subject: [PATCH] core/types: reduce allocations in GasPriceCmp (#22456)

---
 core/types/transaction.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/types/transaction.go b/core/types/transaction.go
index 49127630a..a35e07a5a 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -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.
-- 
GitLab