diff options
author | Ross Nicoll <jrn@jrn.me.uk> | 2014-06-02 22:05:35 +0100 |
---|---|---|
committer | Ross Nicoll <jrn@jrn.me.uk> | 2014-07-08 22:10:46 +0100 |
commit | 509f926e80b3d24a6b6c6fbf535e4d4b97156a3c (patch) | |
tree | eb86a09453218af96ae15c10c808923b0c7a3263 | |
parent | 418d4ad110965b1830b094dc88993966f901d2e6 (diff) |
Payment request parsing on startup now only changes network if a valid network name is specified.
-rw-r--r-- | src/qt/paymentserver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp index 5471625a67..7c0c95c459 100644 --- a/src/qt/paymentserver.cpp +++ b/src/qt/paymentserver.cpp @@ -214,9 +214,13 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[]) if (readPaymentRequest(arg, request)) { if (request.getDetails().network() == "main") + { SelectParams(CBaseChainParams::MAIN); - else + } + else if (request.getDetails().network() == "test") + { SelectParams(CBaseChainParams::TESTNET); + } } } else |