Skip to content

Commit

Permalink
qt: fix 'opens in testnet mode when presented with a BIP-72 link with…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
haight6716 authored and Ross Nicoll committed Aug 28, 2014
1 parent d6a5e74 commit 8ef2ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/paymentserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,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());

Expand Down

0 comments on commit 8ef2ee1

Please sign in to comment.