lnd: call into the correct InvoiceStore from RPC calls

This commit is contained in:
Andras Banki-Horvath committed 2024-03-01 10:08:10 +01:00
1 parent 42508d44e5
commit 7a45bbbeab
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -246,6 +246,8 @@ type server struct {
// channel DB that haven't been separated out yet.
miscDB *channeldb.DB
invoicesDB invoices.InvoiceDB
aliasMgr *aliasmgr.Manager
htlcSwitch *htlcswitch.Switch
@@ -564,6 +566,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
chanStateDB: dbs.ChanStateDB.ChannelStateDB(),
addrSource: dbs.ChanStateDB,
miscDB: dbs.ChanStateDB,
invoicesDB: dbs.InvoiceDB,
cc: cc,
sigPool: lnwallet.NewSigPool(cfg.Workers.Sig, cc.Signer),
writePool: writePool,