Skip to content

Commit

Permalink
add warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bullet-tooth committed Nov 22, 2024
1 parent 996b29f commit 7a6a843
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions btcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ func btcdMain(serverChan chan<- *server) error {
// Show version at startup.
btcdLog.Infof("Version %s", version())

if cfg.TestNet3 {
btcdLog.Warn("Support for testnet3 is deprecated and will be removed in an upcoming release. " +
"Consider switching to testnet4.")
}

// Enable http profiling server if requested.
if cfg.Profile != "" {
go func() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/addblock/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
activeNetParams = &chaincfg.MainNetParams
)

// config defines the configuration options for findcheckpoint.
// config defines the configuration options for addblock.
//
// See loadConfig for details on the configuration load process.
type config struct {
Expand All @@ -41,7 +41,7 @@ type config struct {
Progress int `short:"p" long:"progress" description:"Show a progress message each time this number of seconds have passed -- Use 0 to disable progress announcements"`
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"`
TestNet3 bool `long:"testnet" description:"Use the test network (version 3). Support for testnet3 is deprecated. Consider moving to testnet4 now by using -testnet4"`
TestNet4 bool `long:"testnet4" description:"Use the test network (version 4)"`
TxIndex bool `long:"txindex" description:"Build a full hash-based transaction index which makes all transactions available via the getrawtransaction RPC"`
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/btcctl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ type config struct {
RPCUser string `short:"u" long:"rpcuser" description:"RPC username"`
SimNet bool `long:"simnet" description:"Connect to the simulation test network"`
TLSSkipVerify bool `long:"skipverify" description:"Do not verify tls certificates (not recommended!)"`
TestNet3 bool `long:"testnet" description:"Connect to testnet"`
TestNet3 bool `long:"testnet" description:"Connect to testnet (version 3). Support for testnet3 is deprecated. Consider moving to testnet4 now by using -testnet4"`
TestNet4 bool `long:"testnet4" description:"Connect to testnet (version 4)"`
SigNet bool `long:"signet" description:"Connect to signet"`
ShowVersion bool `short:"V" long:"version" description:"Display version information and exit"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/findcheckpoint/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type config struct {
NumCandidates int `short:"n" long:"numcandidates" description:"Max num of checkpoint candidates to show {1-20}"`
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"`
TestNet3 bool `long:"testnet" description:"Use the test network (version 3). Support for testnet3 is deprecated. Consider moving to testnet4 now by using -testnet4"`
TestNet4 bool `long:"testnet4" description:"Use the test network (version 4)"`
}

Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ type config struct {
SigNet bool `long:"signet" description:"Use the signet test network"`
SigNetChallenge string `long:"signetchallenge" description:"Connect to a custom signet network defined by this challenge instead of using the global default signet test network -- Can be specified multiple times"`
SigNetSeedNode []string `long:"signetseednode" description:"Specify a seed node for the signet network instead of using the global default signet network seed nodes"`
TestNet3 bool `long:"testnet" description:"Use the test network"`
TestNet3 bool `long:"testnet" description:"Use the test network (version 3). Support for testnet3 is deprecated. Consider moving to testnet4 now by using -testnet4"`
TestNet4 bool `long:"testnet4" description:"Use the test network (version 4)"`
TorIsolation bool `long:"torisolation" description:"Enable Tor stream isolation by randomizing user credentials for each connection."`
TrickleInterval time.Duration `long:"trickleinterval" description:"Minimum time between attempts to send new inventory to a connected peer"`
Expand Down

0 comments on commit 7a6a843

Please sign in to comment.