core/txpool/tracking: fix nil deref

pull/30559/head
Martin Holst Swende 1 month ago
parent 82823fba6f
commit 888546725e
No known key found for this signature in database
GPG Key ID: 683B438C05A5DDF0
  1. 2
      core/txpool/tracking/tx_tracker.go

@ -90,9 +90,11 @@ func (tracker *TxTracker) TrackAll(txs []*types.Transaction) {
tracker.byAddr[addr] = legacypool.NewSortedMap()
}
tracker.byAddr[addr].Put(tx)
if tracker.journal != nil {
_ = tracker.journal.insert(tx)
}
}
}
// recheck checks and returns any transactions that needs to be resubmitted.
func (tracker *TxTracker) recheck(journalCheck bool) (resubmits []*types.Transaction, rejournal map[common.Address]types.Transactions) {

Loading…
Cancel
Save