Skip to content

Commit

Permalink
Hotfix for dispensers messages block index
Browse files Browse the repository at this point in the history
  • Loading branch information
chiguireitor committed Oct 24, 2019
1 parent fc7160e commit 427b333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions counterpartylib/lib/messages/dispenser.py
Expand Up @@ -227,6 +227,7 @@ def dispense(db, tx):
util.credit(db, dispenser['source'], dispenser['asset'], give_remaining, action='dispenser close', event=tx['tx_hash'])
dispenser['status'] = STATUS_CLOSED

dispenser['block_index'] = tx['block_index']
cursor.execute('UPDATE DISPENSERS SET give_remaining=:give_remaining, status=:status \
WHERE source=:source AND asset=:asset AND satoshirate=:satoshirate AND give_quantity=:give_quantity', dispenser)

Expand Down

0 comments on commit 427b333

Please sign in to comment.