leave at least one full core open during chain sync

This commit is contained in:
Gene Hoffman
2020-10-16 22:15:25 -07:00
parent de5f646ccd
commit 7fb2e03d38
+1 -1
View File
@@ -101,7 +101,7 @@ class Blockchain:
if cpu_count > 61:
cpu_count = 61 # Windows Server 2016 has an issue https://bugs.python.org/issue26903
self.pool = concurrent.futures.ProcessPoolExecutor(
max_workers=max(cpu_count - 1, 1)
max_workers=max(cpu_count - 2, 1)
)
self.constants = consensus_constants
self.tips = []