Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | for (const std::pair<CScript, Amount> &sendingTo : sendingTos) { | ||||
Q_EMIT message(tr("Payment request rejected"), | Q_EMIT message(tr("Payment request rejected"), | ||||
tr("Invalid payment request."), | tr("Invalid payment request."), | ||||
CClientUIInterface::MSG_ERROR); | CClientUIInterface::MSG_ERROR); | ||||
return false; | return false; | ||||
} | } | ||||
// Extract and check amounts | // Extract and check amounts | ||||
CTxOut txOut(Amount(sendingTo.second), sendingTo.first); | CTxOut txOut(Amount(sendingTo.second), sendingTo.first); | ||||
if (txOut.IsDust(optionsModel->node().getDustRelayFee())) { | if (IsDust(txOut, optionsModel->node().getDustRelayFee())) { | ||||
Q_EMIT message( | Q_EMIT message( | ||||
tr("Payment request error"), | tr("Payment request error"), | ||||
tr("Requested payment amount of %1 is too small (considered " | tr("Requested payment amount of %1 is too small (considered " | ||||
"dust).") | "dust).") | ||||
.arg(BitcoinUnits::formatWithUnit( | .arg(BitcoinUnits::formatWithUnit( | ||||
optionsModel->getDisplayUnit(), sendingTo.second)), | optionsModel->getDisplayUnit(), sendingTo.second)), | ||||
CClientUIInterface::MSG_ERROR); | CClientUIInterface::MSG_ERROR); | ||||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |