mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
core/txpool/locals: fix panic
This commit is contained in:
parent
df06cba97b
commit
fe12230e1d
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue