multi: move global registeredChains to cfg

This commit is contained in:
Oliver Gugger committed 2020-05-14 14:47:35 +02:00
1 parent a7e78112b7
commit 85d5cdfbfd
7 files changed
+27 -23

No files matched your search

+1 -1
View File
@@ -959,7 +959,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
// Select the configuration and furnding parameters for Bitcoin or
// Litecoin, depending on the primary registered chain.
primaryChain := registeredChains.PrimaryChain()
primaryChain := cfg.registeredChains.PrimaryChain()
chainCfg := cfg.Bitcoin
minRemoteDelay := minBtcRemoteDelay
maxRemoteDelay := maxBtcRemoteDelay