Skip to content

fix: lndhub returns invoice paid, when its pending and maybe failing#52

Merged
dni merged 5 commits into
mainfrom
fix/pending
Mar 27, 2026
Merged

fix: lndhub returns invoice paid, when its pending and maybe failing#52
dni merged 5 commits into
mainfrom
fix/pending

Conversation

@dni
Copy link
Copy Markdown
Member

@dni dni commented Mar 27, 2026

lnbits introduced a payment timeout and when that is hit, it will return success and paid invoice.

fix is to wait until invoice is paid for failed before returning.

also! /gettxs should not return pending invoices

lnbits introduced a payment timeout and when that is hit, it will return
success and paid invoice.

fix is to wait until invoice is paid for failed before returning.

also! `/gettxs` should not return pending invoices
Comment thread views_api.py
await get_payments(
wallet_id=key_type.wallet.id,
pending=True,
pending=False,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another issue, should /gettxs should onlyt return succesful payments taken from the docs. https://github.com/BlueWallet/LndHub/blob/master/doc/Send-requirements.md#get-gettxs

@dni dni merged commit 0023a17 into main Mar 27, 2026
7 checks passed
@dni dni deleted the fix/pending branch March 27, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants