work on proof of work

This commit is contained in:
Kevin Froman 2018-05-05 15:20:48 -05:00
parent e2cc375b1a
commit 268cd10f34

View File

@ -554,7 +554,7 @@ class OnionrCommunicate:
pass pass
try: try:
#blockMetadata = json.loads(self._core.getData(i)).split('}')[0] + '}' #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: try:
blockMeta2 = json.loads(blockMetadata['meta']) blockMeta2 = json.loads(blockMetadata['meta'])
except KeyError: except KeyError: