use only one thread in proof of work by default, because of GIL

master
Kevin Froman 2019-03-06 23:43:32 -06:00
parent 26f25f8fe4
commit 4d2a1cab1e
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ def hashMeetsDifficulty(h):
return False return False
class DataPOW: class DataPOW:
def __init__(self, data, forceDifficulty=0, threadCount = 5): def __init__(self, data, forceDifficulty=0, threadCount = 1):
self.foundHash = False self.foundHash = False
self.difficulty = 0 self.difficulty = 0
self.data = data self.data = data
@ -200,7 +200,7 @@ class DataPOW:
return result return result
class POW: 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.foundHash = False
self.difficulty = 0 self.difficulty = 0
self.data = data self.data = data