mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-15 04:11:37 +01:00
dbtool: add TestNet4 config param
This commit is contained in:
parent
9b258bd3cc
commit
47fbe7a242
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,7 @@ type config struct {
|
||||||
RegressionTest bool `long:"regtest" description:"Use the regression test network"`
|
RegressionTest bool `long:"regtest" description:"Use the regression test network"`
|
||||||
SimNet bool `long:"simnet" description:"Use the simulation test network"`
|
SimNet bool `long:"simnet" description:"Use the simulation test network"`
|
||||||
TestNet3 bool `long:"testnet" description:"Use the test network"`
|
TestNet3 bool `long:"testnet" description:"Use the test network"`
|
||||||
|
TestNet4 bool `long:"testnet4" description:"Use the test network (version 4)"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// fileExists reports whether the named file or directory exists.
|
// fileExists reports whether the named file or directory exists.
|
||||||
|
@ -84,6 +85,10 @@ func setupGlobalConfig() error {
|
||||||
numNets++
|
numNets++
|
||||||
activeNetParams = &chaincfg.TestNet3Params
|
activeNetParams = &chaincfg.TestNet3Params
|
||||||
}
|
}
|
||||||
|
if cfg.TestNet4 {
|
||||||
|
numNets++
|
||||||
|
activeNetParams = &chaincfg.TestNet4Params
|
||||||
|
}
|
||||||
if cfg.RegressionTest {
|
if cfg.RegressionTest {
|
||||||
numNets++
|
numNets++
|
||||||
activeNetParams = &chaincfg.RegressionNetParams
|
activeNetParams = &chaincfg.RegressionNetParams
|
||||||
|
|
Loading…
Add table
Reference in a new issue