config: fix litecoin simnet mode
This commit fixes a bug where it was impossible to run lnd in litecoin's simnet mode because of code duplication. As a result `numNets > 1` conditional was always true when running lnd with `cfg.Litecoin.SimNet` flag.
This commit is contained in:
parent
7f08c097fb
commit
d941220762
@ -647,10 +647,6 @@ func loadConfig() (*config, error) {
|
|||||||
numNets++
|
numNets++
|
||||||
ltcParams = litecoinTestNetParams
|
ltcParams = litecoinTestNetParams
|
||||||
}
|
}
|
||||||
if cfg.Litecoin.SimNet {
|
|
||||||
numNets++
|
|
||||||
ltcParams = litecoinSimNetParams
|
|
||||||
}
|
|
||||||
if cfg.Litecoin.RegTest {
|
if cfg.Litecoin.RegTest {
|
||||||
numNets++
|
numNets++
|
||||||
ltcParams = litecoinRegTestNetParams
|
ltcParams = litecoinRegTestNetParams
|
||||||
|
Loading…
Reference in New Issue
Block a user