mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
core/txpool/tracking: fix nil deref
This commit is contained in:
parent
2b8a21db25
commit
09abeed32b
1 changed files with 3 additions and 1 deletions
|
|
@ -90,9 +90,11 @@ func (tracker *TxTracker) TrackAll(txs []*types.Transaction) {
|
||||||
tracker.byAddr[addr] = legacypool.NewSortedMap()
|
tracker.byAddr[addr] = legacypool.NewSortedMap()
|
||||||
}
|
}
|
||||||
tracker.byAddr[addr].Put(tx)
|
tracker.byAddr[addr].Put(tx)
|
||||||
|
if tracker.journal != nil {
|
||||||
_ = tracker.journal.insert(tx)
|
_ = tracker.journal.insert(tx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// recheck checks and returns any transactions that needs to be resubmitted.
|
// 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) {
|
func (tracker *TxTracker) recheck(journalCheck bool) (resubmits []*types.Transaction, rejournal map[common.Address]types.Transactions) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue