Browse Source

Merge pull request #4275

509f926 Payment request parsing on startup now only changes network if a valid network name is specified. (Ross Nicoll)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
2ee918d121
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/qt/paymentserver.cpp

6
src/qt/paymentserver.cpp

@ -214,11 +214,15 @@ bool PaymentServer::ipcParseCommandLine(int argc, char* argv[]) @@ -214,11 +214,15 @@ 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
{
// Printing to debug.log is about the best we can do here, the

Loading…
Cancel
Save