From 4d2a1cab1ee45752249e4d18d5f405b2a758b19f Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 6 Mar 2019 23:43:32 -0600 Subject: [PATCH] use only one thread in proof of work by default, because of GIL --- onionr/onionrproofs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/onionrproofs.py b/onionr/onionrproofs.py index 81a189a9..040d810f 100755 --- a/onionr/onionrproofs.py +++ b/onionr/onionrproofs.py @@ -101,7 +101,7 @@ def hashMeetsDifficulty(h): return False class DataPOW: - def __init__(self, data, forceDifficulty=0, threadCount = 5): + def __init__(self, data, forceDifficulty=0, threadCount = 1): self.foundHash = False self.difficulty = 0 self.data = data @@ -200,7 +200,7 @@ class DataPOW: return result class POW: - def __init__(self, metadata, data, threadCount = 5, forceDifficulty=0, coreInst=None): + def __init__(self, metadata, data, threadCount = 1, forceDifficulty=0, coreInst=None): self.foundHash = False self.difficulty = 0 self.data = data