mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 02:51:37 +02:00
routing: add log message.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user