hopefully finished pow on blocks

This commit is contained in:
Kevin Froman 2018-05-05 18:45:35 -05:00
parent 9c3416e707
commit 54a3557fd0
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 1 additions and 1 deletions

View File

@ -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()