mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-02 23:15:36 +02:00
invoices: fail HTLCs that target the wrong type of invoice
This commit is contained in:
@@ -110,6 +110,10 @@ const (
|
||||
// payment.
|
||||
ResultMppInProgress
|
||||
|
||||
// ResultHtlcInvoiceTypeMismatch is returned when an AMP HTLC targets a
|
||||
// non-AMP invoice and vice versa.
|
||||
ResultHtlcInvoiceTypeMismatch
|
||||
|
||||
// ResultAmpError is returned when we receive invalid AMP parameters.
|
||||
ResultAmpError
|
||||
|
||||
@@ -176,6 +180,9 @@ func (f FailResolutionResult) FailureString() string {
|
||||
case ResultMppInProgress:
|
||||
return "mpp reception in progress"
|
||||
|
||||
case ResultHtlcInvoiceTypeMismatch:
|
||||
return "htlc invoice type mismatch"
|
||||
|
||||
case ResultAmpError:
|
||||
return "invalid amp parameters"
|
||||
|
||||
|
Reference in New Issue
Block a user