mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 23:01:53 +02:00
invoices+channeldb: move invoice state check to invoiceregistry
This commit is contained in:
@@ -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