core/txpool/locals: fix panic

This commit is contained in:
Gary Rong 2025-02-28 20:15:44 +08:00
parent df06cba97b
commit fe12230e1d

View file

@ -111,6 +111,8 @@ func (tracker *TxTracker) TrackAll(txs []*types.Transaction) []error {
errors = append(errors, err)
continue
}
errors = append(errors, nil)
tracker.all[tx.Hash()] = tx
if tracker.byAddr[addr] == nil {
tracker.byAddr[addr] = legacypool.NewSortedMap()