lnd+lncfg: move normalizeNetwork to lncfg

This commit is contained in:
Eugene authored and eugene committed 2020-10-29 15:20:00 -04:00
1 parent 4d238cfa2f
commit 46ef212de4
4 files changed
+17 -18

No files matched your search

+1 -1
View File
@@ -2533,7 +2533,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
"with current best block in the main chain: %v", err)
}
network := normalizeNetwork(r.cfg.ActiveNetParams.Name)
network := lncfg.NormalizeNetwork(r.cfg.ActiveNetParams.Name)
activeChains := make([]*lnrpc.Chain, r.cfg.registeredChains.NumActiveChains())
for i, chain := range r.cfg.registeredChains.ActiveChains() {
activeChains[i] = &lnrpc.Chain{