Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsentry.cpp
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | if (!model->validateAddress(ui->payTo->text())) { | ||||
retval = false; | retval = false; | ||||
} | } | ||||
if (!ui->payAmount->validate()) { | if (!ui->payAmount->validate()) { | ||||
retval = false; | retval = false; | ||||
} | } | ||||
// Sending a zero amount is invalid | // Sending a zero amount is invalid | ||||
if (ui->payAmount->value(0) <= Amount::zero()) { | if (ui->payAmount->value(nullptr) <= Amount::zero()) { | ||||
ui->payAmount->setValid(false); | ui->payAmount->setValid(false); | ||||
retval = false; | retval = false; | ||||
} | } | ||||
// Reject dust outputs: | // Reject dust outputs: | ||||
if (retval && | if (retval && | ||||
GUIUtil::isDust(node, ui->payTo->text(), ui->payAmount->value(), | GUIUtil::isDust(node, ui->payTo->text(), ui->payAmount->value(), | ||||
model->getChainParams())) { | model->getChainParams())) { | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |