mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-27 01:02:56 +02:00
routing: add log message.
This commit is contained in:
parent
a1678fa9b7
commit
1aa1e18b9f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user