mirror of
https://github.com/daywalker90/cln-nip47.git
synced 2026-08-13 12:33:43 +02:00
consider only fully settled holdinvoices paid in list_transactions
This commit is contained in:
parent
b1a33d40aa
commit
7213a9a259
1 changed files with 1 additions and 4 deletions
|
|
@ -511,10 +511,7 @@ pub async fn list_transactions(
|
|||
})?;
|
||||
|
||||
for holdinvoice in holdinvoices.holdinvoices.into_iter() {
|
||||
if !unpaid
|
||||
&& (holdinvoice.state == Holdstate::Open
|
||||
|| holdinvoice.state == Holdstate::Canceled)
|
||||
{
|
||||
if !unpaid && holdinvoice.state != Holdstate::Settled {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue