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:
2 files changed
+11
-1
No files matched your search
@@ -614,7 +614,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
uint32(currentHeight), currentHash, cc.ChainNotifier,
|
||||
)
|
||||
s.invoices = invoices.NewRegistry(
|
||||
dbs.ChanStateDB, expiryWatcher, ®istryConfig,
|
||||
dbs.InvoiceDB, expiryWatcher, ®istryConfig,
|
||||
)
|
||||
|
||||
s.htlcNotifier = htlcswitch.NewHtlcNotifier(time.Now)
|
||||
|
||||
Reference in new issue
Block a user