Skip to content

Commit

Permalink
Filter swaps that have some refund in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgranhao committed Oct 29, 2024
1 parent a0f5eca commit 327345c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2166,6 +2166,7 @@ impl LightningNode {
"Failed to list refundable failed swaps",
)?
.into_iter()
.filter(|s| s.refund_tx_ids.is_empty())
.map(|s| FailedSwapInfo {
address: s.bitcoin_address,
amount: s
Expand Down

0 comments on commit 327345c

Please sign in to comment.