mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 20:06:50 +02:00
routing: map insufficient local bandwidth error to no path
With mpp it isn't possible anymore for findPath to determine that there isn't enough local bandwidth. The full payment amount isn't known at that point. In a follow-up, this payment outcome can be reintroduced on a higher level (payment lifecycle).
This commit is contained in:
@@ -116,6 +116,9 @@ const (
|
||||
|
||||
// FailureReasonInsufficientBalance indicates that we didn't have enough
|
||||
// balance to complete the payment.
|
||||
//
|
||||
// This reason isn't assigned anymore, but may still exist for older
|
||||
// payments.
|
||||
FailureReasonInsufficientBalance FailureReason = 4
|
||||
|
||||
// TODO(halseth): cancel state.
|
||||
|
Reference in New Issue
Block a user