use only one thread in proof of work by default, because of GIL
This commit is contained in:
parent
26f25f8fe4
commit
4d2a1cab1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user