Skip to content

Commit

Permalink
Hotfix for give_remaining difference on expired partially filled btcpays
Browse files Browse the repository at this point in the history
  • Loading branch information
chiguireitor committed Feb 14, 2019
1 parent 1b2670e commit 28d7efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion counterpartylib/lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Versions
VERSION_MAJOR = 9
VERSION_MINOR = 56
VERSION_REVISION = 0
VERSION_REVISION = 1
VERSION_STRING = str(VERSION_MAJOR) + '.' + str(VERSION_MINOR) + '.' + str(VERSION_REVISION)


Expand Down
2 changes: 2 additions & 0 deletions counterpartylib/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ def held (db): #TODO: Rename ?
UNION ALL
SELECT give_asset AS asset, SUM(give_remaining) AS total FROM orders WHERE status = 'open' GROUP BY asset
UNION ALL
SELECT give_asset AS asset, SUM(give_remaining) AS total FROM orders WHERE status = 'filled' and give_asset = 'XCP' and get_asset = 'BTC' GROUP BY asset
UNION ALL
SELECT forward_asset AS asset, SUM(forward_quantity) AS total FROM order_matches WHERE status = 'pending' GROUP BY asset
UNION ALL
SELECT backward_asset AS asset, SUM(backward_quantity) AS total FROM order_matches WHERE status = 'pending' GROUP BY asset
Expand Down

0 comments on commit 28d7efd

Please sign in to comment.