V0.6 #852

Merged
Atheros1 merged 399 commits from v0.6 into master 2016-05-03 01:58:38 +02:00
2 changed files with 9 additions and 2 deletions
Showing only changes of commit 549d91dc68 - Show all commits

View File

@ -18,7 +18,6 @@ import singleton
import os
import socket
import ctypes
from multiprocessing import Process, freeze_support
from struct import pack
import sys
from subprocess import call
@ -266,7 +265,6 @@ class Main:
return {'address':address,'port':port}
if __name__ == "__main__":
freeze_support()
mainprogram = Main()
mainprogram.start()

View File

@ -151,6 +151,15 @@ def run(target, initialHash):
return _doCPoW(target, initialHash)
except:
pass # fallback
if frozen == "macosx_app" or not frozen:
# on my (Peter Surda) Windows 10, Windows Defender
# does not like this and fights with PyBitmessage
# over CPU, resulting in very slow PoW
# added on 2015-11-29: multiprocesing.freeze_support() doesn't help
try:
return _doFastPoW(target, initialHash)
except:
pass #fallback
try:
return _doFastPoW(target, initialHash)
except: