소스 검색

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)