dbtool: add TestNet4 config param

This commit is contained in:
Oleg Bondar 2025-02-10 17:01:44 +00:00
parent f34aee0ef1
commit 071a2bbec6

View file

@ -36,6 +36,7 @@ type config struct {
RegressionTest bool `long:"regtest" description:"Use the regression test network"`
SimNet bool `long:"simnet" description:"Use the simulation 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.
@ -89,6 +90,10 @@ func setupGlobalConfig() error {
numNets++
activeNetParams = &chaincfg.TestNet3Params
}
if cfg.TestNet4 {
numNets++
activeNetParams = &chaincfg.TestNet4Params
}
if cfg.RegressionTest {
numNets++
activeNetParams = &chaincfg.RegressionNetParams