invoices: channel graph reference was wrongly retrieved from remote db

This commit fixes a bug where we tried to use the graph from the remote
db instance whereas it lives in the local db instance.
This commit is contained in:
Andras Banki-Horvath committed 2020-11-05 17:57:13 +01:00
1 parent d89f51d1d0
commit e8f47cf882
2 files changed
+10 -13

No files matched your search

+1
View File
@@ -4736,6 +4736,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
NodeSigner: r.server.nodeSigner,
DefaultCLTVExpiry: defaultDelta,
ChanDB: r.server.remoteChanDB,
Graph: r.server.localChanDB.ChannelGraph(),
GenInvoiceFeatures: func() *lnwire.FeatureVector {
return r.server.featureMgr.Get(feature.SetInvoice)
},