more bytes issues

This commit is contained in:
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

View File

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