Enable --mainnet flag.
This change enables the --mainnet flag to connect to a mainnet btcd instance and open and create mainnet wallets. Attempting to connect to a testnet btcd, or opening a testnet wallet when running in mainnet mode will result in an error printed to the logging output. Testnet (version 3) remains the default network for now. btcwallet will continue to receive fixes and new features, but at the moment we believe that early adopters familar with using btcwallet on testnet can safely use it for mainnet now as well. Reminder: when dealing with mainnet coins, it is always a good idea to keep backups of your wallet. btcwallet uses a deterministic wallet, and any later addresses for an account can be recreated with just the account's original wallet file (this does *not* include imported addresses). Might we recommend Cyphertite for a backup solution?
This commit is contained in:
parent
7a91209a4c
commit
5f1fb8b874
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ type config struct {
|
|||
Password string `short:"P" long:"password" default-mask:"-" description:"Password for btcd authorization"`
|
||||
RPCCert string `long:"rpccert" description:"File containing the certificate file"`
|
||||
RPCKey string `long:"rpckey" description:"File containing the certificate key"`
|
||||
MainNet bool `long:"mainnet" description:"*DISABLED* Use the main Bitcoin network (default testnet3)"`
|
||||
MainNet bool `long:"mainnet" description:"Use the main Bitcoin network (default testnet3)"`
|
||||
Proxy string `long:"proxy" description:"Connect via SOCKS5 proxy (eg. 127.0.0.1:9050)"`
|
||||
ProxyUser string `long:"proxyuser" description:"Username for proxy server"`
|
||||
ProxyPass string `long:"proxypass" default-mask:"-" description:"Password for proxy server"`
|
||||
|
@ -199,7 +199,7 @@ func loadConfig() (*config, []string, error) {
|
|||
|
||||
// Choose the active network params based on the mainnet net flag.
|
||||
if cfg.MainNet {
|
||||
//activeNetParams = netParams(btcwire.MainNet)
|
||||
activeNetParams = netParams(btcwire.MainNet)
|
||||
}
|
||||
|
||||
// Validate debug log level
|
||||
|
|
Loading…
Reference in a new issue