-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fixup)tapchannel: conditionally check linkbandwidth against htlcAmt …
…in PaymentBandwidth Previously we would always perform a check between htlcAmt and link bandwidth in the PaymentBandwidth hook. This would not work as for RFQ payments the htlcAmt passed to this function would be the overall translated asset value, which could easily exceed the remaining link bandwidth expressed in sats. We now perform two distinct htlc budget checks, once in the keysend path and once in the RFQ path.
- Loading branch information
1 parent
c9909ea
commit ed13ed7
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters