invoices+channeldb: move invoice state check to invoiceregistry

This commit is contained in:
Joost Jager committed 2019-06-10 16:12:08 +02:00
1 parent e45d4d703a
commit 18c025151a
3 files changed
+13 -11

No files matched your search

+4
View File
@@ -662,5 +662,9 @@ func TestQueryInvoices(t *testing.T) {
}
func checkHtlcParameters(invoice *Invoice) error {
if invoice.Terms.State == ContractSettled {
return ErrInvoiceAlreadySettled
}
return nil
}