invoices: add processAMP

This commit is contained in:
Conner Fromknecht
2021-03-22 12:37:23 -07:00
parent 3fb70dd936
commit 88b72ab398
4 changed files with 127 additions and 14 deletions

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"
}