Skip to content

Commit 2ee918d

Browse files
committed
Merge pull request #4275
509f926 Payment request parsing on startup now only changes network if a valid network name is specified. (Ross Nicoll)
2 parents f51816f + 509f926 commit 2ee918d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/qt/paymentserver.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,13 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
214214
if (readPaymentRequest(arg, request))
215215
{
216216
if (request.getDetails().network() == "main")
217+
{
217218
SelectParams(CBaseChainParams::MAIN);
218-
else
219+
}
220+
else if (request.getDetails().network() == "test")
221+
{
219222
SelectParams(CBaseChainParams::TESTNET);
223+
}
220224
}
221225
}
222226
else

0 commit comments

Comments
 (0)