From 7fb2e03d38310546c0e2fa7f338ca38721663dff Mon Sep 17 00:00:00 2001 From: Gene Hoffman Date: Fri, 16 Oct 2020 22:15:25 -0700 Subject: [PATCH] leave at least one full core open during chain sync --- src/full_node/blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/full_node/blockchain.py b/src/full_node/blockchain.py index e2009fce12..496c6d3cbe 100644 --- a/src/full_node/blockchain.py +++ b/src/full_node/blockchain.py @@ -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 = []