Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | void PaymentServer::LoadRootCAs(X509_STORE *_store) { | ||||
// privacy (fetch through tor/proxy so IP address isn't revealed) | // privacy (fetch through tor/proxy so IP address isn't revealed) | ||||
// would it be easier to just use a compiled-in blacklist? | // would it be easier to just use a compiled-in blacklist? | ||||
// or use Qt's blacklist? | // or use Qt's blacklist? | ||||
// "certificate stapling" with server-side caching is more efficient | // "certificate stapling" with server-side caching is more efficient | ||||
} | } | ||||
static std::string ipcParseURI(const QString &arg, const CChainParams ¶ms, | static std::string ipcParseURI(const QString &arg, const CChainParams ¶ms, | ||||
bool useCashAddr) { | bool useCashAddr) { | ||||
const QString scheme = GUIUtil::bitcoinURIScheme(params, useCashAddr); | const QString scheme = QString::fromStdString(params.CashAddrPrefix()); | ||||
if (!arg.startsWith(scheme + ":", Qt::CaseInsensitive)) { | if (!arg.startsWith(scheme + ":", Qt::CaseInsensitive)) { | ||||
return {}; | return {}; | ||||
} | } | ||||
SendCoinsRecipient r; | SendCoinsRecipient r; | ||||
if (!GUIUtil::parseBitcoinURI(scheme, arg, &r)) { | if (!GUIUtil::parseBitcoinURI(scheme, arg, &r)) { | ||||
return {}; | return {}; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 677 Lines • Show Last 20 Lines |