Skip to content

Batch Channel Opens #1510

Closed
Closed
@TheBlueMatt

Description

@TheBlueMatt

We should probably support a single funding transaction funding multiple channels. This is a bit complicated, though - we have to make sure we never broadcast the funding transaction until all channels are ready, not just one. This may require a new state flag in channels to indicate we're waiting on another channel.

Worse, there's a really nasty race condition where a user creates two channels, funds both of them in one transaction, then one of the peers disconnects. Now there's only one channel that LDK remembers but the transaction the user created pays to two channel outputs. Thus when we go to broadcast the second channel funds are locked. I'm not really sure how to address this without making the user provide the list of transactions they're funding when giving the transaction to LDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions