-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Currently, bLIP-51 states:
In case the channel open failed
- MUST set order_state to FAILED.
- MUST issue a refund.
It is however not clear what constitutes a failed channel open, i.e., if reorgs/unconfirmations of the funding transaction count towards that.
In particular, imagine the following scenario: the client requests a 0-conf channel, the LSP opens the channel, the funding transaction confirms, but then a reorg happens and the funding transaction isn't confirmed anymore, possibly in violation of min_funding_confirms_within_blocks. I think in this case we should consider the channel open as failed and the LSP needs to refund the user to refund_onchain_address, I guess?
We should provide further guidance in the spec how to handle these cases.
Looking for feedback here to hear if we have ideas how to best address this.
(cc @MegalithicBTC @kaloudis)