aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addresstablemodel.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2011-07-02 15:09:53 +0200
committerWladimir J. van der Laan <[email protected]>2011-07-02 15:11:40 +0200
commit669b0a5835500c41b15501c5b9eb60ba1a2c7735 (patch)
treebf6aa100ee3bffd906ce5f8a33e7c7378e860c89 /src/qt/addresstablemodel.cpp
parentSend: dialog redesign (automatically look up label for entered address) (diff)
downloaddiscoin-669b0a5835500c41b15501c5b9eb60ba1a2c7735.tar.xz
discoin-669b0a5835500c41b15501c5b9eb60ba1a2c7735.zip
Check addresses in address book for validity
Diffstat (limited to 'src/qt/addresstablemodel.cpp')
-rw-r--r--src/qt/addresstablemodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp
index ca605241e..6829fea6e 100644
--- a/src/qt/addresstablemodel.cpp
+++ b/src/qt/addresstablemodel.cpp
@@ -263,3 +263,10 @@ void AddressTableModel::update()
{
}
+
+bool AddressTableModel::validateAddress(const QString &address)
+{
+ uint160 hash160 = 0;
+
+ return AddressToHash160(address.toStdString(), hash160);
+}