invoices+channeldb: move invoice state check to invoiceregistry
This commit is contained in:
3 files changed
+13
-11
No files matched your search
@@ -662,5 +662,9 @@ func TestQueryInvoices(t *testing.T) {
|
||||
}
|
||||
|
||||
func checkHtlcParameters(invoice *Invoice) error {
|
||||
if invoice.Terms.State == ContractSettled {
|
||||
return ErrInvoiceAlreadySettled
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user