Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 800 Lines • ▼ Show 20 Lines | |||||
bool PaymentServer::verifyAmount(const CAmount &requestAmount) { | bool PaymentServer::verifyAmount(const CAmount &requestAmount) { | ||||
bool fVerified = MoneyRange(requestAmount); | bool fVerified = MoneyRange(requestAmount); | ||||
if (!fVerified) { | if (!fVerified) { | ||||
qWarning() << QString("PaymentServer::%1: Payment request amount out " | qWarning() << QString("PaymentServer::%1: Payment request amount out " | ||||
"of allowed range (%2, allowed 0 - %3).") | "of allowed range (%2, allowed 0 - %3).") | ||||
.arg(__func__) | .arg(__func__) | ||||
.arg(requestAmount) | .arg(requestAmount) | ||||
.arg(MAX_MONEY); | .arg(MAX_MONEY.GetSatoshis()); | ||||
} | } | ||||
return fVerified; | return fVerified; | ||||
} | } | ||||
X509_STORE *PaymentServer::getCertStore() { | X509_STORE *PaymentServer::getCertStore() { | ||||
return certStore.get(); | return certStore.get(); | ||||
} | } |