aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-09-06 21:44:33 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-09-06 23:48:35 +0100
commit86e6dd4b630299eaa778ca241797b24758b6f8a4 (patch)
tree7617b513bcf1bccc965b003050ee1620685535c4 /src/qt
parent8d0041e607a0e5bff52152f3d8af504f3703baa7 (diff)
Remove duplicate destination decoding
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/transactiondesc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index f3fe4096a2..74f5c774a0 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -91,8 +91,8 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
if (nNet > 0)
{
// Credit
- if (IsValidDestinationString(rec->address)) {
- CTxDestination address = DecodeDestination(rec->address);
+ CTxDestination address = DecodeDestination(rec->address);
+ if (IsValidDestination(address)) {
if (wallet->mapAddressBook.count(address))
{
strHTML += "<b>" + tr("From") + ":</b> " + tr("unknown") + "<br>";