aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-08-08 13:09:07 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-08-22 11:05:44 +1000
commit57d80467f123741f228910dea8c1245134bbfbfe (patch)
treeabdc71a4ec2d9ccb3f31e3027abe768b3db330c0 /src/qt/guiutil.h
parentb986663ccdd3dfd8a93aad660839a315ca5c5bdd (diff)
Reject dust amounts during validation
Replaces the validation check for "amount == 0" with an isDust check, so very small output amounts are caught before the wallet is unlocked, a transaction is created, etc.
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index ca3e7fe91d..8472700f48 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -36,6 +36,9 @@ namespace GUIUtil
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out);
bool parseBitcoinURI(QString uri, SendCoinsRecipient *out);
+ // Returns true if given address+amount meets "dust" definition
+ bool isDust(const QString& address, qint64 amount);
+
// HTML escaping for rich text controls
QString HtmlEscape(const QString& str, bool fMultiLine=false);
QString HtmlEscape(const std::string& str, bool fMultiLine=false);