diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-02 15:09:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-02 15:11:40 +0200 |
commit | 669b0a5835500c41b15501c5b9eb60ba1a2c7735 (patch) | |
tree | bf6aa100ee3bffd906ce5f8a33e7c7378e860c89 /src/qt/addresstablemodel.cpp | |
parent | ebff5c40a234f38429965c391da020bbf8312b1b (diff) |
Check addresses in address book for validity
Diffstat (limited to 'src/qt/addresstablemodel.cpp')
-rw-r--r-- | src/qt/addresstablemodel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp index ca605241ed..6829fea6e9 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); +} |