Skip to content

Bug: xpay fails because it keeps retrying paths over the same node #9590

Description

@ErikDeSmedt

I have failed xpay.

What I observed

I called xpay and it failed.
The call attempted 45 different routes and tried for 145s.
There are 41 attempts routing through the same node.
For all these routes fail with unknown_next_peer (16394) on the hop to that node.
This error-code is returned by lnd if the node is off-line.

What I expected

I understand the node is attractive because it is well connected and offers low fees.
But why are we doing 41 attempts if we know they any route through that node is going to fail anyway.
I expect at some point we exclude that node and focus on sensible paths.

Activity

  1. vincenzopalazzo commented on Sep 30, 2026

    @vincenzopalazzo
    Collaborator

    @ErikDeSmedt what about this #9592 could be a solution to your problem?

    I also noted that xpay will be triggered in some weird state sometimes

  2. added a commit that references this issue on Sep 30, 2026
    a97e697
  3. ErikDeSmedt commented on Oct 1, 2026

    @ErikDeSmedt
    ContributorAuthor

    I believe this MR would have fixed the problem for that payment.

    PS: I found another instance of a failed payment going through exactly this failure scenario today

  4. added this to the v26.12 milestone on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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