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:
Joost Jager
2020-03-25 14:59:08 +01:00
parent 3ad7ab223e
commit cb4cd49dc8
4 changed files with 4 additions and 42 deletions

View File

@@ -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.