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

probe payment as sanity check #260

Merged
merged 7 commits into from
Dec 19, 2023

Commits on Nov 23, 2023

  1. policy: be able to set MinSwapAmountMsat

    Change MinSwapAmountMsat to be set by policy.
    YusukeShimizu committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    da1fe17 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. test: swap in StuckChannels

    Added test case to confirm that swap fails
    on StuckChannels.
    Allow pushAmt to be set during setup.
    Set min_swap_amount_msat to 1.
    YusukeShimizu committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    da8ecf3 View commit details
    Browse the repository at this point in the history
  2. swap: probe payment as sanity check

    Replace sanity check with probe payment in SpendableMsat.
    ProbePayment trying to pay via a route with
     a random payment hash that the receiver doesn't have the preimage of.
    The receiver node aren't able to settle the payment.
    When the probe is successful, the receiver will return
    a incorrect_or_unknown_payment_details error to the sender.
    If the result of ProbePayment is assumed
    to be a payment failure, log the reason as known by ProbePayment
    YusukeShimizu committed Nov 24, 2023
    Configuration menu
    Copy the full SHA
    e5cbb6b View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. testframework: verify that route is constructed

    Route may not be built even when channel is active.
    Since this causes flaky test,
    Added to check route construction in advance.
    YusukeShimizu committed Nov 26, 2023
    Configuration menu
    Copy the full SHA
    5c30387 View commit details
    Browse the repository at this point in the history
  2. swap: restored sanity check

    Restored sanity check of the maximum htlc limit.
    * To check max htlc more strictly than CLN's own limits.
    * To prevents a tiny bit of database bloat
    in situations where it is guaranteed to fail.
    YusukeShimizu committed Nov 26, 2023
    Configuration menu
    Copy the full SHA
    dbec5bb View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. cln: uses the exact channel to probe payment

    To ensures that the invoice payment is probed
    via the direct channel to the peer.
    YusukeShimizu committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    a6af654 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52e2ff3 View commit details
    Browse the repository at this point in the history