config: expose the InvoiceDB interface in DatabaseInstances

By now the only implementation is still the one in channeldb but other
project can use their custom implementations if needed.
This commit is contained in:
positiveblue
2022-12-19 06:38:15 -08:00
parent 5ff5225245
commit 824e792dc2
2 changed files with 11 additions and 1 deletions

View File

@ -614,7 +614,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
uint32(currentHeight), currentHash, cc.ChainNotifier,
)
s.invoices = invoices.NewRegistry(
dbs.ChanStateDB, expiryWatcher, &registryConfig,
dbs.InvoiceDB, expiryWatcher, &registryConfig,
)
s.htlcNotifier = htlcswitch.NewHtlcNotifier(time.Now)