lightningdevkit / lightning-liquidity

Other
27 stars 17 forks source link

LSPS2: ability to signal channel open failure #137

Open johncantrell97 opened 5 months ago

johncantrell97 commented 5 months ago

Closes https://github.com/lightningdevkit/lightning-liquidity/issues/130

There are a number of reasons a channel open might fail or be abandoned by the LSP. This adds a way for the LSP to signal back to the library that this has happened.

All pending payments are failed backwards and the channel state is reset to PendingInitialPayment as per the spec. This allows the payer to try again.