work on proof of work

This commit is contained in:
Kevin Froman 2018-05-05 15:20:48 -05:00
parent e2cc375b1a
commit 268cd10f34
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ class OnionrCommunicate:
pass
try:
#blockMetadata = json.loads(self._core.getData(i)).split('}')[0] + '}'
blockMetadata = json.loads(blockContent[:blockContent.rfind(b'}') + 1])
blockMetadata = json.loads(blockContent[:blockContent.rfind(b'}') + 1].decode())
try:
blockMeta2 = json.loads(blockMetadata['meta'])
except KeyError: