work on proof of work
parent
e2cc375b1a
commit
268cd10f34
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue