hopefully finished pow on blocks
parent
9c3416e707
commit
54a3557fd0
|
@ -680,7 +680,7 @@ class OnionrCommunicate:
|
||||||
return False
|
return False
|
||||||
dataLen = len(blockContent)
|
dataLen = len(blockContent)
|
||||||
print(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
|
difficulty = 0
|
||||||
try:
|
try:
|
||||||
expectedHash = expectedHash.decode()
|
expectedHash = expectedHash.decode()
|
||||||
|
|
Loading…
Reference in New Issue