diff options
| author | João Barbosa <[email protected]> | 2017-09-06 21:44:33 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2017-09-06 23:48:35 +0100 |
| commit | 86e6dd4b630299eaa778ca241797b24758b6f8a4 (patch) | |
| tree | 7617b513bcf1bccc965b003050ee1620685535c4 /src | |
| parent | Remove unused GetKeyID and IsScript methods from CBitcoinAddress (diff) | |
| download | discoin-86e6dd4b630299eaa778ca241797b24758b6f8a4.tar.xz discoin-86e6dd4b630299eaa778ca241797b24758b6f8a4.zip | |
Remove duplicate destination decoding
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/transactiondesc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index f3fe4096a..74f5c774a 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>"; |