Skip to content

Add heuristic to LDK code or docs #2499

Closed

Description

@moneyball

From LDK Discord, @TheBlueMatt:

"Because there’s rarely liquidity limits for reasonable-value payments in the “core” of ln, one trivial heuristic would be to decline to send a pre-flight probe if the amount is > 1/3 of your available outbound liquidity on a channel that’s used for the probe"

"presumably ldk-node should do that for you, but we may want to document these guidelines in rust-lightning too
or have a wrapper which does the checks pre-flight in ChannelManager"

Activity

  1. added this to the 0.1.1 milestone on Aug 15, 2023
  2. TheBlueMatt commented on Aug 15, 2023

    @TheBlueMatt
    Collaborator

    Should be a nice and easy project for someone - just a new ChannelManager method called pre-flight probing or whatever that takes some payment info and fetches a route, sending probes for any paths which use less than 1/3 of the available liquidity on the first-hop.

  3. ariard commented on Aug 17, 2023

    @ariard

    I think can be related to #2397

  4. TheBlueMatt commented on Aug 17, 2023

    @TheBlueMatt
    Collaborator

    Not really - this issue is in reference to Just In Time probing, and adding the (trivial) method to do that for a single payment. 2397 is about background probing and the machinery to pick who to probe, how often to probe, and do so constantly unrelated to payments.

  5. jbesraa commented on Aug 20, 2023

    @jbesraa
    Contributor

    keen to pick this up.
    I have 2 open prs but one of them looks complete so I hope its ok to pick this.

  6. tnull commented on Aug 21, 2023

    @tnull
    Contributor

    keen to pick this up. I have 2 open prs but one of them looks complete so I hope its ok to pick this.

    Ah, thank you! However, we concluded in lightningdevkit/ldk-node#156 that we'd upstream the code from LDK Node, so the actual work is essentially already done, will open an PR for it soon.

  7. self-assigned this
    on Aug 21, 2023
  8. jbesraa commented on Aug 21, 2023

    @jbesraa
    Contributor

    cool, will pick something else 👯

  9. TheBlueMatt commented on Aug 22, 2023

    @TheBlueMatt
    Collaborator

    I have 2 open prs but one of them looks complete so I hope its ok to pick this.

    Probably a good indication you should go review some other PRs :p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions