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

Check funds in millisatoshi when sending/receiving an HTLC #1128

Merged
merged 2 commits into from
Sep 6, 2019
Merged

Commits on Sep 6, 2019

  1. check funds in millisatoshi

    Instead of satoshi, which could introduce rounding errors.
    
    Also, we check first the balance before the max-inflight amount, because
    it makes more sense in terms of error management.
    pm47 committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    8636c11 View commit details
    Browse the repository at this point in the history
  2. use msat values in comparison

    Co-Authored-By: Bastien Teinturier <[email protected]>
    pm47 and t-bast authored Sep 6, 2019
    Configuration menu
    Copy the full SHA
    bce5021 View commit details
    Browse the repository at this point in the history