Skip to content
Snippets Groups Projects
Commit 4187f8a1 authored by Flug Schwein's avatar Flug Schwein Committed by Flug Schwein
Browse files

Add new hardfork_hive operation, which got added at the steem/hive hardfork.

parent b782b2ad
Branches
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
...@@ -439,6 +439,12 @@ class AccountSnapshot(list): ...@@ -439,6 +439,12 @@ class AccountSnapshot(list):
self.update_in_vote(ts, weight, op) self.update_in_vote(ts, weight, op)
return return
elif op['type'] == 'hardfork_hive':
vests = Amount(op['vests_converted'])
hbd = Amount(op['steem_transferred'])
hive = Amount(op['sbd_transferred'])
self.update(ts, vests * (-1), 0, 0, hive * (-1), hbd * (-1))
elif op['type'] in ['comment', 'feed_publish', 'shutdown_witness', elif op['type'] in ['comment', 'feed_publish', 'shutdown_witness',
'account_witness_vote', 'witness_update', 'custom_json', 'account_witness_vote', 'witness_update', 'custom_json',
'limit_order_create', 'account_update', 'limit_order_create', 'account_update',
......
...@@ -71,7 +71,8 @@ ops = [ ...@@ -71,7 +71,8 @@ ops = [
'producer_reward', 'producer_reward',
'clear_null_account_balance', 'clear_null_account_balance',
'proposal_pay', 'proposal_pay',
'sps_fund' 'sps_fund',
'hardfork_hive'
] ]
operations = {o: ops.index(o) for o in ops} operations = {o: ops.index(o) for o in ops}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment