Merge pull request #8096 from ziggie1984/fix-dip-below-reserve

lnwallet: Introduce a fee buffer.
This commit is contained in:
Yong authored and GitHub committed 2024-01-09 01:52:04 +08:00
commit 34af399a5b
11 files changed
+1322 -285

No files matched your search

+4
View File
@@ -586,6 +586,10 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig,
// If the total outgoing balance isn't sufficient, it will be
// impossible to complete the payment.
if total < amt {
log.Warnf("Not enough outbound balance to send "+
"htlc of amount: %v, only have local "+
"balance: %v", amt, total)
return nil, 0, errInsufficientBalance
}