From 77892376f286b7e37da9b4b656de16886cfbab33 Mon Sep 17 00:00:00 2001 From: moomin <67548026+nothingmin@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:17:05 +0900 Subject: [PATCH] eth/fetcher: track legacypool duplicate transaction --- eth/fetcher/tx_fetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/fetcher/tx_fetcher.go b/eth/fetcher/tx_fetcher.go index ea7892d8d8..d39963d824 100644 --- a/eth/fetcher/tx_fetcher.go +++ b/eth/fetcher/tx_fetcher.go @@ -341,7 +341,7 @@ func (f *TxFetcher) Enqueue(peer string, txs []*types.Transaction, direct bool) switch { case err == nil: // Noop, but need to handle to not count these - case errors.Is(err, txpool.ErrAlreadyKnown): + case errors.Is(err, txpool.ErrAlreadyKnown) || errors.Is(err, legacypool.ErrAlreadyKnown): duplicate++ case errors.Is(err, txpool.ErrUnderpriced) || errors.Is(err, txpool.ErrReplaceUnderpriced):