Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Replacement of invoices to handle stuck payments.

1 message, Apr 16, 2021. Started by Rusty Russell.

Rusty Russell

Permalink First message in the Wayback Machine

Rusty Russell permalink original

Hi all,

        https://github.com/lightningnetwork/lightning-rfc/pull/798/commits/fc8aab72ccdd616301dc200fc124824efe4fbb58

I've just added a simple addition to the proposed BOLT 12 offers spec, where invoice requests can ask to obsolete old invoices. This allows a simple workaround in the case where a payment is stuck: the vendor commits to a new invoice which obsoletes the old one, using the already-existing invoice_request message.

        If the vendor cheats and accepts both old and new payments, you
can prove they lied.  Or they can return an error which indicates
they've already received the payment and it's simply the return which is
stuck.

Either way, it's now simple to implement, and gives wallets another option for handling these cases.

Cheers! Rusty.