Skip to content

Bug: Batch-opened channels not fully displayed in graph designer #1361

@myxmaster

Description

@myxmaster

Describe the bug
When opening multiple channels in a single batch transaction (same funding TXID, different output indices), only one of the channels appears in the Polar graph designer. The other channel(s) are missing from the UI.

Running lncli --network=regtest listchannels on the nodes confirms that both channels exist and are active. This is purely a UI issue.

Suspected cause:
The batch transaction produces a single funding TXID with two different output indices. Polar may be keying channel lookups on the funding TXID alone, causing it to only recognize the first output as a channel and ignoring subsequent outputs from the same transaction.

To Reproduce

  1. Create a network with 3 LND nodes (Alice, Bob, Carol)
  2. From an external wallet connected to Bob, batch-open channels to both Alice and Carol simultaneously (using LND's PSBT-based channel batching via openChannelStream)
  3. Mine 3 blocks to confirm
  4. Observe the graph designer

Expected behavior
Both channels (Bob→Alice and Bob→Carol) appear in the graph designer.

Desktop (please complete the following information):

  • OS: Windows 11 25h2
  • Polar Version: 4.0.0
  • Docker Version: 29.2.0
  • Docker Compose Version: 5.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersup for grabsAnyone can work on this

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions