mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
channeldb/invoice: fail extra HTLC sets immeidately
This commit is contained in:
@@ -61,6 +61,10 @@ const (
|
||||
// invoice that is already canceled.
|
||||
ResultInvoiceAlreadyCanceled
|
||||
|
||||
// ResultInvoiceAlreadySettled is returned when trying to pay an invoice
|
||||
// that is already settled.
|
||||
ResultInvoiceAlreadySettled
|
||||
|
||||
// ResultAmountTooLow is returned when an invoice is underpaid.
|
||||
ResultAmountTooLow
|
||||
|
||||
@@ -133,6 +137,9 @@ func (f FailResolutionResult) FailureString() string {
|
||||
case ResultInvoiceAlreadyCanceled:
|
||||
return "invoice already canceled"
|
||||
|
||||
case ResultInvoiceAlreadySettled:
|
||||
return "invoice alread settled"
|
||||
|
||||
case ResultAmountTooLow:
|
||||
return "amount too low"
|
||||
|
||||
|
Reference in New Issue
Block a user