diff options
author | Matt Corallo <git@bluematt.me> | 2012-08-07 19:19:14 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2012-08-07 19:37:02 +0200 |
commit | 2bc15836bead1d5bdb8eca2db2525a9643cc4d0f (patch) | |
tree | 191b6fd4b6826de3eadc06bfe4b866a29222f2ec /src/qt/guiutil.cpp | |
parent | 319236afa221b571b372d3a1eee4a635f9b53976 (diff) |
Fix Qt test cases by moving address checks to parseBitcoinURI
Makes sense in case bitcoin URIs eventually allow invalid addresses
as a part of some larger future payment scheme.
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 558eff6d5d..d2d7716dbd 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -4,7 +4,6 @@ #include "bitcoinunits.h" #include "util.h" #include "init.h" -#include "base58.h" #include <QString> #include <QDateTime> @@ -81,11 +80,6 @@ bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out) if(uri.scheme() != QString("bitcoin")) return false; - // check if the address is valid - CBitcoinAddress addressFromUri(uri.path().toStdString()); - if (!addressFromUri.IsValid()) - return false; - SendCoinsRecipient rv; rv.address = uri.path(); rv.amount = 0; |