Broken addresses on command line no longer trigger testnet.

When passing a bitcoin: URI on the command line, invalid addresses do not incorrectly send the
user to the test network.
This commit is contained in:
Ross Nicoll
2014-08-02 19:54:57 +01:00
parent 9d26dc3b29
commit e84843c0db
5 changed files with 26 additions and 13 deletions

View File

@@ -104,6 +104,7 @@ public:
bool Set(const CScriptID &id);
bool Set(const CTxDestination &dest);
bool IsValid() const;
bool IsValid(const CChainParams &params) const;
CBitcoinAddress() {}
CBitcoinAddress(const CTxDestination &dest) { Set(dest); }