Skip to content
Snippets Groups Projects
Commit 8c215705 authored by crokkon's avatar crokkon
Browse files

blockchain.py: handle virtual ops streaming

parent 76d7f1ca
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
...@@ -559,7 +559,10 @@ class Blockchain(object): ...@@ -559,7 +559,10 @@ class Blockchain(object):
continue continue
if self.blockchain.rpc.get_use_appbase(): if self.blockchain.rpc.get_use_appbase():
if only_virtual_ops: if only_virtual_ops:
block = block["ops"] block = {'block': block[0]["block"],
'timestamp': block[0]["timestamp"],
'id': block[0]['block'],
'operations': block}
else: else:
block = block["block"] block = block["block"]
block = Block(block, only_ops=only_ops, only_virtual_ops=only_virtual_ops, blockchain_instance=self.blockchain) block = Block(block, only_ops=only_ops, only_virtual_ops=only_virtual_ops, blockchain_instance=self.blockchain)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment