Fixed double PoW on pubkey messages.
This commit is contained in:
parent
128c6916af
commit
651cdd6357
|
@ -2750,7 +2750,6 @@ class singleWorker(threading.Thread):
|
||||||
initialHash = hashlib.sha512(payload).digest()
|
initialHash = hashlib.sha512(payload).digest()
|
||||||
trialValue, nonce = proofofwork.run(target, initialHash)
|
trialValue, nonce = proofofwork.run(target, initialHash)
|
||||||
print '(For pubkey message) Found proof of work', trialValue, 'Nonce:', nonce
|
print '(For pubkey message) Found proof of work', trialValue, 'Nonce:', nonce
|
||||||
trialValue, nonce = proofofwork.run(target, initialHash)
|
|
||||||
payload = pack('>Q',nonce) + payload
|
payload = pack('>Q',nonce) + payload
|
||||||
"""t = (hash,payload,embeddedTime,'no')
|
"""t = (hash,payload,embeddedTime,'no')
|
||||||
shared.sqlLock.acquire()
|
shared.sqlLock.acquire()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user