Browse Source

core: fix txpool off-by-one error (#21683)

Martin Holst Swende 5 years ago
parent
commit
706f5e3b98
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/tx_pool.go

+ 1 - 0
core/tx_pool.go

@@ -817,6 +817,7 @@ func (pool *TxPool) addTxs(txs []*types.Transaction, local, sync bool) []error {
 			nilSlot++
 		}
 		errs[nilSlot] = err
+		nilSlot++
 	}
 	// Reorg the pool internals if needed and return
 	done := pool.requestPromoteExecutables(dirtyAddrs)