Remove unused variables in onionrproofs.py
This commit is contained in:
parent
6c091acd34
commit
7c7058a691
@ -114,9 +114,6 @@ class DataPOW:
|
|||||||
self.hashing = True
|
self.hashing = True
|
||||||
self.reporting = reporting
|
self.reporting = reporting
|
||||||
iFound = False # if current thread is the one that found the answer
|
iFound = False # if current thread is the one that found the answer
|
||||||
answer = ''
|
|
||||||
heartbeat = 200000
|
|
||||||
hbCount = 0
|
|
||||||
|
|
||||||
while self.hashing:
|
while self.hashing:
|
||||||
rand = nacl.utils.random()
|
rand = nacl.utils.random()
|
||||||
@ -208,10 +205,7 @@ class POW:
|
|||||||
self.hashing = True
|
self.hashing = True
|
||||||
self.reporting = reporting
|
self.reporting = reporting
|
||||||
iFound = False # if current thread is the one that found the answer
|
iFound = False # if current thread is the one that found the answer
|
||||||
answer = ''
|
|
||||||
hbCount = 0
|
|
||||||
nonce = int(binascii.hexlify(nacl.utils.random(64)), 16)
|
nonce = int(binascii.hexlify(nacl.utils.random(64)), 16)
|
||||||
startNonce = nonce
|
|
||||||
while self.hashing:
|
while self.hashing:
|
||||||
#token = nacl.hash.blake2b(rand + self.data).decode()
|
#token = nacl.hash.blake2b(rand + self.data).decode()
|
||||||
self.metadata['pow'] = nonce
|
self.metadata['pow'] = nonce
|
||||||
|
Loading…
Reference in New Issue
Block a user