multi: move global networkDir to cfg

This commit is contained in:
Oliver Gugger committed 2020-05-14 14:47:35 +02:00
1 parent 85d5cdfbfd
commit d44f205e3f
3 files changed
+13 -13

No files matched your search

+1 -1
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,