From fe12230e1d596449e65aa67dcb8257dd463a513d Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Fri, 28 Feb 2025 20:15:44 +0800 Subject: [PATCH] core/txpool/locals: fix panic --- core/txpool/locals/tx_tracker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/txpool/locals/tx_tracker.go b/core/txpool/locals/tx_tracker.go index aa0256fd72..644f9d5a35 100644 --- a/core/txpool/locals/tx_tracker.go +++ b/core/txpool/locals/tx_tracker.go @@ -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()