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
2020-10-26 14:14:15 +01:00
parent d89f51d1d0
commit e8f47cf882
2 changed files with 10 additions and 13 deletions

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)
},