hopefully finished pow on blocks
This commit is contained in:
parent
9c3416e707
commit
54a3557fd0
@ -680,7 +680,7 @@ class OnionrCommunicate:
|
||||
return False
|
||||
dataLen = len(blockContent)
|
||||
print(blockContent)
|
||||
expectedHash = self._crypto.blake2bHash(base64.b64decode(metadata['powToken']) + blockContent.encode())
|
||||
expectedHash = self._crypto.blake2bHash(base64.b64decode(metadata['powToken']) + self._crypto.blake2bHash(blockContent.encode()))
|
||||
difficulty = 0
|
||||
try:
|
||||
expectedHash = expectedHash.decode()
|
||||
|
Loading…
Reference in New Issue
Block a user