core/txpool/tracking: fix nil deref
This commit is contained in:
parent
2b8a21db25
commit
09abeed32b
|
@ -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…
Reference in New Issue