Skip to content

Commit 509f926

Browse files
author
Ross Nicoll
committed
Payment request parsing on startup now only changes network if a valid network name is specified.
1 parent 418d4ad commit 509f926

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)