From de384c1c560a31af58725bcdedc262640bcf37bb Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Fri, 31 May 2013 14:38:08 -0400 Subject: [PATCH] Multi-core POW --- src/bitmessagemain.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 0eb78101..c7ce958e 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -3150,6 +3150,7 @@ class singleWorker(threading.Thread): requiredAverageProofOfWorkNonceTrialsPerByte = shared.networkDefaultProofOfWorkNonceTrialsPerByte if requiredPayloadLengthExtraBytes < shared.networkDefaultPayloadLengthExtraBytes: requiredPayloadLengthExtraBytes = shared.networkDefaultPayloadLengthExtraBytes + #todo: pull yet-to-be-added values out of config: maximumacceptabletotaldifficult and maximumacceptablesmallmessagedifficulty and compare. encrypted = highlevelcrypto.encrypt(payload,"04"+pubEncryptionKeyBase256.encode('hex')) #We are now dropping the unencrypted data in payload since it has already been encrypted and replacing it with the encrypted payload that we will send out.