From d7b7bf04eee5859d9de6f79d5691dd12f3415cb0 Mon Sep 17 00:00:00 2001 From: ucwong Date: Mon, 13 Mar 2023 15:24:21 +0800 Subject: [PATCH] txpool : simply set local as false --- core/txpool/txpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 08c872e8b429..ad556f39fbb2 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -749,7 +749,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e // Add all transactions back to the priced queue if replacesPending { for _, dropTx := range drop { - pool.priced.Put(dropTx, local || pool.locals.containsTx(dropTx)) + pool.priced.Put(dropTx, false) } log.Trace("Discarding future transaction replacing pending tx", "hash", hash) return false, ErrFutureReplacePending