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

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

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
}