mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 02:51:37 +02:00
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:
@ -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