From 5b87bc26ecbde2760dbe7119f09e740c481c192f Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Wed, 21 Jan 2015 12:38:25 -0500 Subject: [PATCH] Fix #758 --- src/class_singleWorker.py | 2 ++ src/proofofwork.py | 1 + src/shared.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 5fe85d6d..84f0403c 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -1,3 +1,5 @@ +from __future__ import division + import threading import shared import time diff --git a/src/proofofwork.py b/src/proofofwork.py index 8857ccb3..4392bc7e 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -71,6 +71,7 @@ def _doFastPoW(target, initialHash): time.sleep(0.2) def run(target, initialHash): + target = int(target) if frozen == "macosx_app" or not frozen: return _doFastPoW(target, initialHash) else: diff --git a/src/shared.py b/src/shared.py index 1de8708f..ec16e6e9 100644 --- a/src/shared.py +++ b/src/shared.py @@ -1,3 +1,5 @@ +from __future__ import division + softwareVersion = '0.4.4' verbose = 1 maximumAgeOfAnObjectThatIAmWillingToAccept = 216000 # This is obsolete with the change to protocol v3 but the singleCleaner thread still hasn't been updated so we need this a little longer.