Disable --mainnet flag (hardcoded false).

This commit is contained in:
Josh Rickmar 2013-10-15 16:06:13 -04:00
parent 284191ec4b
commit a5c7079fdf

View file

@ -45,7 +45,7 @@ type config struct {
DataDir string `short:"D" long:"datadir" description:"Directory to store wallets and transactions"` DataDir string `short:"D" long:"datadir" description:"Directory to store wallets and transactions"`
Username string `short:"u" long:"username" description:"Username for btcd authorization"` Username string `short:"u" long:"username" description:"Username for btcd authorization"`
Password string `short:"P" long:"password" description:"Password for btcd authorization"` Password string `short:"P" long:"password" description:"Password for btcd authorization"`
MainNet bool `long:"mainnet" description:"Use the main Bitcoin network (default testnet3)"` MainNet bool `long:"mainnet" description:"*DISABLED* Use the main Bitcoin network (default testnet3)"`
} }
// btcwalletHomeDir returns an OS appropriate home directory for btcwallet. // btcwalletHomeDir returns an OS appropriate home directory for btcwallet.
@ -144,5 +144,8 @@ func loadConfig() (*config, []string, error) {
return nil, nil, err return nil, nil, err
} }
// TODO(jrick): Enable mainnet support again when ready.
cfg.MainNet = false
return &cfg, remainingArgs, nil return &cfg, remainingArgs, nil
} }