Skip to content

Commit

Permalink
Fixes issue MultiChain#11 where the asset holders page an incorrect b…
Browse files Browse the repository at this point in the history
…alance.

This was due to not subtracting the value of a 'issue more' utxo being
spent from the asset balance.
  • Loading branch information
bitcartel committed Sep 10, 2016
1 parent 44ca15b commit 9ceb61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mce/DataStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2139,8 +2139,8 @@ def import_tx(store, tx, is_coinbase, chain):
# VALUES ((SELECT asset_id FROM asset WHERE prefix = ?),?,?)""",
# (prefix, store.hashin(spent_tx_hash), store.intin(txin['prevout_n'])))

elif opdrop_type==util.OP_DROP_TYPE_SEND_ASSET:
# Spending sent tx
elif opdrop_type in [util.OP_DROP_TYPE_SEND_ASSET, util.OP_DROP_TYPE_ISSUE_MORE_ASSET]:
# Spending sent tx or issue more tx
for dict in val:
quantity = dict['quantity']
assetref = dict['assetref']
Expand Down

0 comments on commit 9ceb61a

Please sign in to comment.