From d44942e13c59bed796bfef2259133a559311d39f Mon Sep 17 00:00:00 2001 From: Vinod Damle Date: Wed, 5 May 2021 21:21:32 -0400 Subject: [PATCH] core/tx_pool: fix off-by-one error copy of: https://github.com/ethereum/go-ethereum/pull/21683 --- core/tx_pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/tx_pool.go b/core/tx_pool.go index 791638575e..e54ea9f8c6 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -856,6 +856,7 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error { nilSlot++ } errs[nilSlot] = err + nilSlot++ } log.Trace("Filtered transactions with errors", "count", len(errs)) // Reorg the pool internals if needed and return