Payment request parsing on startup now only changes network if a valid network name is specified.

This commit is contained in:
Ross Nicoll 2014-06-02 22:05:35 +01:00
parent 418d4ad110
commit 509f926e80
1 changed files with 5 additions and 1 deletions

View File

@ -214,9 +214,13 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[])
if (readPaymentRequest(arg, request))
{
if (request.getDetails().network() == "main")
{
SelectParams(CBaseChainParams::MAIN);
else
}
else if (request.getDetails().network() == "test")
{
SelectParams(CBaseChainParams::TESTNET);
}
}
}
else