New POW calculation module #1284
|
@ -244,9 +244,11 @@ class singleWorker(threading.Thread, helper_threading.StoppableThread):
|
||||||
|
|
||||||
parallelism = bmconfigparser.BMConfigParser().safeGetInt("bitmessagesettings", "maxcores")
|
parallelism = bmconfigparser.BMConfigParser().safeGetInt("bitmessagesettings", "maxcores")
|
||||||
|
|
||||||
if parallelism is None:
|
if parallelism < 1:
|
||||||
parallelism = self.workProver.defaultParallelism
|
parallelism = self.workProver.defaultParallelism
|
||||||
|
|
||||||
|
debug.logger.info("Availabe solvers: %s", str(self.workProver.availableSolvers.keys()))
|
||||||
|
|
||||||
if "gpu" in self.workProver.availableSolvers and GPUVendor is not None:
|
if "gpu" in self.workProver.availableSolvers and GPUVendor is not None:
|
||||||
self.workProver.commandsQueue.put(("setSolver", "gpu", None))
|
self.workProver.commandsQueue.put(("setSolver", "gpu", None))
|
||||||
elif "fast" in self.workProver.availableSolvers:
|
elif "fast" in self.workProver.availableSolvers:
|
||||||
|
@ -768,9 +770,9 @@ class singleWorker(threading.Thread, helper_threading.StoppableThread):
|
||||||
|
|
||||||
if ackMessage is None:
|
if ackMessage is None:
|
||||||
newStatus = "msgsentnoackexpected"
|
newStatus = "msgsentnoackexpected"
|
||||||
|
sleepTill = 0
|
||||||
else:
|
else:
|
||||||
newStatus = "msgsent"
|
newStatus = "msgsent"
|
||||||
|
|
||||||
sleepTill = int(time.time() + TTL * 1.1)
|
sleepTill = int(time.time() + TTL * 1.1)
|
||||||
|
|
||||||
helper_sql.sqlExecute("""
|
helper_sql.sqlExecute("""
|
||||||
|
|
Reference in New Issue
Block a user