瀏覽代碼

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

Martin Holst Swende 5 年之前
父節點
當前提交
706f5e3b98
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)