Merge pull request #4275
509f926
Payment request parsing on startup now only changes network if a valid network name is specified. (Ross Nicoll)
This commit is contained in:
commit
2ee918d121
1 changed files with 5 additions and 1 deletions
|
@ -214,9 +214,13 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
|
||||||
if (readPaymentRequest(arg, request))
|
if (readPaymentRequest(arg, request))
|
||||||
{
|
{
|
||||||
if (request.getDetails().network() == "main")
|
if (request.getDetails().network() == "main")
|
||||||
|
{
|
||||||
SelectParams(CBaseChainParams::MAIN);
|
SelectParams(CBaseChainParams::MAIN);
|
||||||
else
|
}
|
||||||
|
else if (request.getDetails().network() == "test")
|
||||||
|
{
|
||||||
SelectParams(CBaseChainParams::TESTNET);
|
SelectParams(CBaseChainParams::TESTNET);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue