channeldb: store hold invoice

This commit is contained in:
Joost Jager
2018-10-05 10:14:56 +02:00
parent 8392f6d28f
commit 19f79613df
7 changed files with 111 additions and 43 deletions

View File

@@ -392,7 +392,7 @@ func (i *InvoiceRegistry) AddInvoice(invoice *channeldb.Invoice,
return spew.Sdump(invoice)
}))
addIndex, err := i.cdb.AddInvoice(invoice)
addIndex, err := i.cdb.AddInvoice(invoice, paymentHash)
if err != nil {
return 0, err
}