Skip to content

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

@piotr-iohk

Description

@piotr-iohk

Steps to reproduce: (related test: @send_2 - Can receive funds and send to different invoices)

  1. Tap 'Send' and 'Enter Manually': bitcoin:bcrt1qaytrqsrgg75rtxrtr7ur6k75la8p3v95mey48z?lightning=LNBCRT1PN33T20DQQNP4QTNTQ4D2DHDYQ420HAUQF5TS7X32TNW9WGYEPQZQ6R9G69QPHW4RXPP5QU7UYXJYJA9PJV7H6JPEYEFFNZ98N686JDEAAK8AUD5AGC5X70HQSP54V5LEFATCQDEU8TLKAF6MDK3ZLU6MWUA52J4JEMD5XA85KGKMTTQ9QYYSGQCQPCXQRRSSRZJQWU6G4HMGH26EXXQYPQD8XHVWLARA66PL53V7S9CV2EE808UGDRN4APYQQQQQQQGRCQQQQLGQQQQQQGQ2QX7F74RT5SQE0KEYCU47LYMSVY2LM4QA4KLR65PPSY55M0H4VR8AN7WVM9EFVSPYJ5R8EFGVXTGVATAGFTC372VRJ3HEPSEELFZ7FQFCQ9XDU9X
    Note: Lightning invoice is expired, decoded:
"timestamp": "1729670479",
"expiry": "3600"
  1. Tap 'Continue'.

Actual:

  • The wallet attempts to use the expired Lightning invoice.
  • Payment fails with "Failed to send the given payment".
  • No fallback to the Bitcoin address occurs.

Expected:

  • The wallet detects that the Lightning invoice is expired.
  • The wallet falls back to the Bitcoin address in the URI.
  • User is either prompted for the amount (if not provided) or the on-chain payment is prepared automatically.

See the video:

unified-expired-bolt11.webm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions