Increase random bits mainly for preventing duplicate nonces for the same block
This commit is contained in:
parent
795266edaf
commit
ae845940d9
@ -221,7 +221,7 @@ class POW:
|
|||||||
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 = ''
|
answer = ''
|
||||||
hbCount = 0
|
hbCount = 0
|
||||||
nonce = int(binascii.hexlify(nacl.utils.random(2)), 16)
|
nonce = int(binascii.hexlify(nacl.utils.random(64)), 16)
|
||||||
startNonce = nonce
|
startNonce = nonce
|
||||||
while self.hashing:
|
while self.hashing:
|
||||||
#token = nacl.hash.blake2b(rand + self.data).decode()
|
#token = nacl.hash.blake2b(rand + self.data).decode()
|
||||||
|
Loading…
Reference in New Issue
Block a user