aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Haight <github@a.julianhaight.com>2014-07-02 09:42:15 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-18 15:34:28 +0200
commitbf75a3d3fdae069ff6eed410bf16ee68452ea41f (patch)
tree63f65f2a7c825d5b4ae8933f4086176b4b7a6cc0
parent221684c7effa194d2c409622056f613c894adef5 (diff)
qt: fix 'opens in testnet mode when presented with a BIP-72 link with no fallback'
Passes tests: ``` $ ./bitcoin-qt 'bitcoin:?r=http://www.example.com/' .. fixed the original problem - this launches mainnet. $ ./bitcoin-qt 'bitcoin:mngeNQbTKnmaMbx8EXCYdwUbnt9JJD52cC' .. launches testnet $ ./bitcoin-qt -testnet 'bitcoin:1NXXeQRyMFFFRfyUix2o7mk1vhvk2Nxp78' .. sanity check - launches mainnet. ``` Fixes #4355. Closes #4411. Rebased-From: dd49e92
-rw-r--r--src/qt/paymentserver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp
index ca6ae17990..e43b350a92 100644
--- a/src/qt/paymentserver.cpp
+++ b/src/qt/paymentserver.cpp
@@ -191,7 +191,7 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
savedPaymentRequests.append(arg);
SendCoinsRecipient r;
- if (GUIUtil::parseBitcoinURI(arg, &r))
+ if (GUIUtil::parseBitcoinURI(arg, &r) && !r.address.isEmpty())
{
CBitcoinAddress address(r.address.toStdString());