mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-09 17:14:30 +01:00
Update list-payments: exclude chain swap refunds (#366)
If not excluded, they appear as separate Receive payments.
This commit is contained in:
@@ -169,8 +169,10 @@ impl Persister {
|
||||
ON ptx.tx_id in (cs.user_lockup_tx_id, cs.claim_tx_id)
|
||||
LEFT JOIN payment_tx_data AS rtx -- Refund tx data
|
||||
ON rtx.tx_id in (ss.refund_tx_id, cs.refund_tx_id)
|
||||
WHERE -- Filter out refund txs from Payment tx list
|
||||
WHERE -- Filter out refund txs from Send Swaps
|
||||
ptx.tx_id NOT IN (SELECT refund_tx_id FROM send_swaps WHERE refund_tx_id NOT NULL)
|
||||
AND -- Filter out refund txs from Chain Swaps
|
||||
ptx.tx_id NOT IN (SELECT refund_tx_id FROM chain_swaps WHERE refund_tx_id NOT NULL)
|
||||
AND {}
|
||||
",
|
||||
where_clause.unwrap_or("true")
|
||||
|
||||
Reference in New Issue
Block a user