Skip to content

Commit

Permalink
Merge branch 'dev' into fix/wallet_lndrest_payment_catch_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Dec 19, 2023
2 parents baa1bd4 + abbcfbe commit 79241f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lnbits/nodes/cln.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,12 @@ async def get_invoices(
NodeInvoice(
bolt11=invoice.get("bolt11") or invoice.get("bolt12"),
amount=(
# normal invoice
invoice.get("amount_msat")
# keysend or paid amountless invoice
or invoice.get("amount_received_msat")
# unpaid amountless invoice
or 0
),
preimage=invoice.get("payment_preimage"),
memo=invoice.get("description"),
Expand Down

0 comments on commit 79241f2

Please sign in to comment.