Skip to content

Conversation

@jvsena42
Copy link
Member

@jvsena42 jvsena42 commented Jan 3, 2026

Closes #366

Description

This PR fallback to on-chain invoice when a BIP21 has an expired lightning invoice

Preview

no-amount.webm
with-amount.webm
ln-only.webm

QA Notes

Make a invoice fail faster :

    suspend fun createInvoice(
        amountSats: ULong? = null,
        description: String,
        expirySeconds: UInt = 10u,
  • Unified invoice without amount
  • Unified invoice with amount
  • Expired lightning invoice

@jvsena42 jvsena42 self-assigned this Jan 3, 2026
@jvsena42 jvsena42 changed the title Fix/fallback expired ln to onchain fix: fallback expired ln on unified invoice to onchain Jan 3, 2026
@jvsena42 jvsena42 marked this pull request as ready for review January 5, 2026 10:34
@jvsena42 jvsena42 enabled auto-merge January 5, 2026 10:35
@jvsena42 jvsena42 changed the title fix: fallback expired ln on unified invoice to onchain fix: fallback to on-chain when BIP21 has expired LN invoice Jan 5, 2026
@jvsena42 jvsena42 requested a review from ovitrif January 5, 2026 10:36
@jvsena42
Copy link
Member Author

jvsena42 commented Jan 5, 2026

@piotr-iohk this probably also unblock some E2E test

@piotr-iohk
Copy link
Collaborator

@piotr-iohk this probably also unblock some E2E test

Yes. Tests updated: synonymdev/bitkit-e2e-tests#93

Unfortunately it is also observed in iOS (created an issue: synonymdev/bitkit-ios#300), missed to check this earlier 😅

Copy link
Collaborator

@ovitrif ovitrif left a comment

Choose a reason for hiding this comment

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

utAck, looks clean and simple!

@jvsena42 jvsena42 merged commit fa7e9f4 into master Jan 5, 2026
28 of 31 checks passed
@jvsena42 jvsena42 deleted the fix/fallback-expired-ln-to-onchain branch January 5, 2026 23:21
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.

Expired Lightning in unified invoice fails instead of falling back to Bitcoin address

4 participants