Skip to content

Probe only up to the last public hop if there's no other choices #2517

Closed
@TheBlueMatt

Description

@TheBlueMatt

If we're doing pre-flight probing for a payment, and the last hop is from an invoice route hint, and there's only one option for the last-hop route, and the node is not public, there's no reason to probe through to the endpoint - we might as well probe to the second-to-last hop. Worse, probing to the endpoint may confuse some LSPs, causing them to open a JIT channel when there's no real payment yet. For ldk-node this should be ~easy, for LDK itself we probably want to do it as a part of #2499.

cc @tnull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions