multi: move global networkDir to cfg

This commit is contained in:
Oliver Gugger
2020-05-14 13:40:18 +02:00
parent 85d5cdfbfd
commit d44f205e3f
3 changed files with 13 additions and 13 deletions

View File

@ -585,7 +585,7 @@ func newRPCServer(s *server, macService *macaroons.Service,
// the dependencies they need are properly populated within each sub
// server configuration struct.
err = subServerCgs.PopulateDependencies(
s.cc, networkDir, macService, atpl, invoiceRegistry,
s.cc, cfg.networkDir, macService, atpl, invoiceRegistry,
s.htlcSwitch, activeNetParams.Params, s.chanRouter,
routerBackend, s.nodeSigner, s.chanDB, s.sweeper, tower,
s.towerClient, cfg.net.ResolveTCPAddr, genInvoiceFeatures,