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

routing+htlcswitch: fix stuck inflight payments #9150

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    cd6bf9f View commit details
    Browse the repository at this point in the history
  2. channeldb+routing: cache circuit and onion blob for htlc attempt

    This commit caches the creation of sphinx circuit and onion blob to
    avoid re-creating them again.
    yyforyongyu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2727c2a View commit details
    Browse the repository at this point in the history
  3. routing: add new method reloadInflightAttempts

    To shorten the method `resumePayment` and make each step more clear.
    yyforyongyu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ced1f7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d4a04f5 View commit details
    Browse the repository at this point in the history
  5. routing: add new method refreshPayment

    To further shorten the lifecycle loop.
    yyforyongyu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    689c215 View commit details
    Browse the repository at this point in the history
  6. routing: always update payment in the same goroutine

    This commit refactors `collectResultAsync` such that this method is now
    only responsible for collecting results from the switch. A new method
    `processSwitchResults` is added to process these results in the same
    goroutine where we fetch the payment from db, to make sure the lifecycle
    loop always have a consistent view of a given payment.
    yyforyongyu committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    95e57b1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f846fb8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b631432 View commit details
    Browse the repository at this point in the history