invoices+channeldb: move invoice state check to invoiceregistry

This commit is contained in:
Joost Jager
2019-06-10 12:02:06 +02:00
parent e45d4d703a
commit 18c025151a
3 changed files with 13 additions and 11 deletions

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
}