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