more bytes issues

master
Kevin Froman 2018-07-10 02:20:32 -05:00
parent e0618f3166
commit 7cf4cd9862
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 4 additions and 0 deletions

View File

@ -263,6 +263,10 @@ class OnionrCrypto:
pass pass
blockHash = self.sha3Hash(blockContent) blockHash = self.sha3Hash(blockContent)
try:
blockHash = blockHash.decode() # bytes on some versions for some reason
except AttributeError:
pass
difficulty = math.floor(dataLen / 1000000) difficulty = math.floor(dataLen / 1000000)