Skip to content

bLIP-51: Missing guidance on how the LSP should handle reorgs #62

@tnull

Description

@tnull

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions