mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 02:58:33 +01:00
Merge branch 'v0-16-1-branch-rc1-7588' into v0-16-1-branch-rc1
This commit is contained in:
commit
b129e10da3
1 changed files with 9 additions and 0 deletions
|
@ -1231,6 +1231,15 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
|
||||||
if cfg.Bitcoin.SimNet {
|
if cfg.Bitcoin.SimNet {
|
||||||
numNets++
|
numNets++
|
||||||
cfg.ActiveNetParams = chainreg.BitcoinSimNetParams
|
cfg.ActiveNetParams = chainreg.BitcoinSimNetParams
|
||||||
|
|
||||||
|
// For simnet, the btcsuite chain params uses a
|
||||||
|
// cointype of 115. However, we override this in
|
||||||
|
// chainreg/chainparams.go, but the raw ChainParam
|
||||||
|
// field is used elsewhere. To ensure everything is
|
||||||
|
// consistent, we'll also override the cointype within
|
||||||
|
// the raw params.
|
||||||
|
targetCoinType := chainreg.BitcoinSigNetParams.CoinType
|
||||||
|
cfg.ActiveNetParams.Params.HDCoinType = targetCoinType
|
||||||
}
|
}
|
||||||
if cfg.Bitcoin.SigNet {
|
if cfg.Bitcoin.SigNet {
|
||||||
numNets++
|
numNets++
|
||||||
|
|
Loading…
Add table
Reference in a new issue