mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
core/txpool/legacypool: prevent crash due to nil deref
This commit is contained in:
parent
75810da52f
commit
a7cf6e5194
1 changed files with 3 additions and 1 deletions
|
|
@ -87,8 +87,10 @@ func (tracker *TxTracker) TrackAll(txs []*types.Transaction) {
|
|||
tracker.byAddr[addr] = 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue