Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple probing API #1567

Merged
merged 2 commits into from Jul 7, 2022
Merged

Commits on Jul 6, 2022

  1. Refactor max_mpp_path_count to max_path_count

    Using this field just for MPP doesn't make sense when it could
    intuitively also be used to indicate single-path payments. We therefore
    rename `max_mpp_path_count` to `max_path_count` and make sure that a
    value of 1 ensures MPP is not even tried.
    tnull committed Jul 6, 2022
    Copy the full SHA
    790abc5 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. Add send_probe and introduce probing cookies

    When we send payment probes, we generate the [`PaymentHash`] based on a
    probing cookie secret and a random [`PaymentId`]. This allows us to
    discern probes from real payments, without keeping additional state.
    tnull committed Jul 7, 2022
    Copy the full SHA
    eb8bce0 View commit details
    Browse the repository at this point in the history