Skip to content

Commit dd49e92

Browse files
haight6716laanwj
authored andcommitted
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.
1 parent c9600ce commit dd49e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/paymentserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
195195
savedPaymentRequests.append(arg);
196196

197197
SendCoinsRecipient r;
198-
if (GUIUtil::parseBitcoinURI(arg, &r))
198+
if (GUIUtil::parseBitcoinURI(arg, &r) && !r.address.isEmpty())
199199
{
200200
CBitcoinAddress address(r.address.toStdString());
201201

0 commit comments

Comments
 (0)