invoices: add processAMP

This commit is contained in:
Conner Fromknecht committed 2021-04-07 12:08:34 -07:00
1 parent 3fb70dd936
commit 88b72ab398
4 files changed
+127 -14

No files matched your search

+6
View File
@@ -105,6 +105,9 @@ const (
// ResultMppInProgress is returned when we are busy receiving a mpp
// payment.
ResultMppInProgress
// ResultAmpError is returned when we receive invalid AMP parameters.
ResultAmpError
)
// String returns a string representation of the result.
@@ -162,6 +165,9 @@ func (f FailResolutionResult) FailureString() string {
case ResultMppInProgress:
return "mpp reception in progress"
case ResultAmpError:
return "invalid amp parameters"
default:
return "unknown failure resolution result"
}