channeldb/invoice: fail extra HTLC sets immeidately

This commit is contained in:
Conner Fromknecht
2021-05-06 09:17:19 -07:00
parent 70efaa5fe2
commit 8402e346f5
3 changed files with 49 additions and 0 deletions

View File

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