Changeset View
Changeset View
Standalone View
Standalone View
src/qt/paymentserver.cpp
Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Lines | for (const std::pair<CScript, CAmount> &sendingTo : sendingTos) { | ||||
CClientUIInterface::MSG_ERROR); | CClientUIInterface::MSG_ERROR); | ||||
return false; | return false; | ||||
} | } | ||||
recipient.amount += sendingTo.second; | recipient.amount += sendingTo.second; | ||||
// Also verify that the final amount is still in a valid range after | // Also verify that the final amount is still in a valid range after | ||||
// adding additional amounts. | // adding additional amounts. | ||||
if (!verifyAmount(recipient.amount)) { | if (!verifyAmount(recipient.amount.GetSatoshis())) { | ||||
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; | ||||
} | } | ||||
} | } | ||||
// Store addresses and format them to fit nicely into the GUI | // Store addresses and format them to fit nicely into the GUI | ||||
recipient.address = addresses.join("<br />"); | recipient.address = addresses.join("<br />"); | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |