|
|
@ -144,7 +144,7 @@ void PaymentServer::LoadRootCAs(X509_STORE* _store) |
|
|
|
int nRootCerts = 0; |
|
|
|
int nRootCerts = 0; |
|
|
|
const QDateTime currentTime = QDateTime::currentDateTime(); |
|
|
|
const QDateTime currentTime = QDateTime::currentDateTime(); |
|
|
|
|
|
|
|
|
|
|
|
Q_FOREACH (const QSslCertificate& cert, certList) { |
|
|
|
for (const QSslCertificate& cert : certList) { |
|
|
|
// Don't log NULL certificates
|
|
|
|
// Don't log NULL certificates
|
|
|
|
if (cert.isNull()) |
|
|
|
if (cert.isNull()) |
|
|
|
continue; |
|
|
|
continue; |
|
|
@ -267,7 +267,7 @@ void PaymentServer::ipcParseCommandLine(int argc, char* argv[]) |
|
|
|
bool PaymentServer::ipcSendCommandLine() |
|
|
|
bool PaymentServer::ipcSendCommandLine() |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool fResult = false; |
|
|
|
bool fResult = false; |
|
|
|
Q_FOREACH (const QString& r, savedPaymentRequests) |
|
|
|
for (const QString& r : savedPaymentRequests) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QLocalSocket* socket = new QLocalSocket(); |
|
|
|
QLocalSocket* socket = new QLocalSocket(); |
|
|
|
socket->connectToServer(ipcServerName(), QIODevice::WriteOnly); |
|
|
|
socket->connectToServer(ipcServerName(), QIODevice::WriteOnly); |
|
|
@ -392,7 +392,7 @@ void PaymentServer::uiReady() |
|
|
|
initNetManager(); |
|
|
|
initNetManager(); |
|
|
|
|
|
|
|
|
|
|
|
saveURIs = false; |
|
|
|
saveURIs = false; |
|
|
|
Q_FOREACH (const QString& s, savedPaymentRequests) |
|
|
|
for (const QString& s : savedPaymentRequests) |
|
|
|
{ |
|
|
|
{ |
|
|
|
handleURIOrFile(s); |
|
|
|
handleURIOrFile(s); |
|
|
|
} |
|
|
|
} |
|
|
@ -555,7 +555,7 @@ bool PaymentServer::processPaymentRequest(const PaymentRequestPlus& request, Sen |
|
|
|
QList<std::pair<CScript, CAmount> > sendingTos = request.getPayTo(); |
|
|
|
QList<std::pair<CScript, CAmount> > sendingTos = request.getPayTo(); |
|
|
|
QStringList addresses; |
|
|
|
QStringList addresses; |
|
|
|
|
|
|
|
|
|
|
|
Q_FOREACH(const PAIRTYPE(CScript, CAmount)& sendingTo, sendingTos) { |
|
|
|
for (const PAIRTYPE(CScript, CAmount)& sendingTo : sendingTos) { |
|
|
|
// Extract and check destination addresses
|
|
|
|
// Extract and check destination addresses
|
|
|
|
CTxDestination dest; |
|
|
|
CTxDestination dest; |
|
|
|
if (ExtractDestination(sendingTo.first, dest)) { |
|
|
|
if (ExtractDestination(sendingTo.first, dest)) { |
|
|
@ -742,7 +742,7 @@ void PaymentServer::reportSslErrors(QNetworkReply* reply, const QList<QSslError> |
|
|
|
Q_UNUSED(reply); |
|
|
|
Q_UNUSED(reply); |
|
|
|
|
|
|
|
|
|
|
|
QString errString; |
|
|
|
QString errString; |
|
|
|
Q_FOREACH (const QSslError& err, errs) { |
|
|
|
for (const QSslError& err : errs) { |
|
|
|
qWarning() << "PaymentServer::reportSslErrors: " << err; |
|
|
|
qWarning() << "PaymentServer::reportSslErrors: " << err; |
|
|
|
errString += err.errorString() + "\n"; |
|
|
|
errString += err.errorString() + "\n"; |
|
|
|
} |
|
|
|
} |
|
|
|