diff --git a/beem/snapshot.py b/beem/snapshot.py index 269a29b7fd3489f29b674769071449dadd9aabd5..f3b66fadcc20b5642e312d9642ba465f8afc3035 100644 --- a/beem/snapshot.py +++ b/beem/snapshot.py @@ -439,6 +439,12 @@ class AccountSnapshot(list): self.update_in_vote(ts, weight, op) 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', 'account_witness_vote', 'witness_update', 'custom_json', 'limit_order_create', 'account_update', diff --git a/beembase/operationids.py b/beembase/operationids.py index b3700bdeb277741be5def077fbc2d854088ab71a..3b9ba3d102b82ab7958cfbf9f04234962bae26c6 100644 --- a/beembase/operationids.py +++ b/beembase/operationids.py @@ -71,7 +71,8 @@ ops = [ 'producer_reward', 'clear_null_account_balance', 'proposal_pay', - 'sps_fund' + 'sps_fund', + 'hardfork_hive' ] operations = {o: ops.index(o) for o in ops}