Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | |||||
// | // | ||||
// Sending to the server is done synchronously, at startup. | // Sending to the server is done synchronously, at startup. | ||||
// If the server isn't already running, startup continues, and the items in | // If the server isn't already running, startup continues, and the items in | ||||
// savedPaymentRequest will be handled when uiReady() is called. | // savedPaymentRequest will be handled when uiReady() is called. | ||||
// | // | ||||
// Warning: ipcSendCommandLine() is called early in init, so don't use "Q_EMIT | // Warning: ipcSendCommandLine() is called early in init, so don't use "Q_EMIT | ||||
// message()", but "QMessageBox::"! | // message()", but "QMessageBox::"! | ||||
// | // | ||||
void PaymentServer::ipcParseCommandLine(interfaces::Node &node, int argc, | void PaymentServer::ipcParseCommandLine(int argc, char *argv[]) { | ||||
char *argv[]) { | |||||
std::array<const std::string *, 3> networks = { | std::array<const std::string *, 3> networks = { | ||||
{&CBaseChainParams::MAIN, &CBaseChainParams::TESTNET, | {&CBaseChainParams::MAIN, &CBaseChainParams::TESTNET, | ||||
&CBaseChainParams::REGTEST}}; | &CBaseChainParams::REGTEST}}; | ||||
const std::string *chosenNetwork = nullptr; | const std::string *chosenNetwork = nullptr; | ||||
for (int i = 1; i < argc; i++) { | for (int i = 1; i < argc; i++) { | ||||
QString arg(argv[i]); | QString arg(argv[i]); | ||||
▲ Show 20 Lines • Show All 789 Lines • Show Last 20 Lines |