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