We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960c87a commit fbae079Copy full SHA for fbae079
core/txpool/locals/tx_tracker.go
@@ -151,7 +151,13 @@ func (tracker *TxTracker) recheck(journalCheck bool) []*types.Transaction {
151
for _, list := range rejournal {
152
// cmp(a, b) should return a negative number when a < b,
153
slices.SortFunc(list, func(a, b *types.Transaction) int {
154
- return int(a.Nonce() - b.Nonce())
+ if a.Nonce() < b.Nonce() {
155
+ return -1
156
+ }
157
+ if a.Nonce() > b.Nonce() {
158
+ return 1
159
160
+ return 0
161
})
162
}
163
// Rejournal the tracker while holding the lock. No new transactions will
0 commit comments