Skip to content

Commit 86e6dd4

Browse files
committed
Remove duplicate destination decoding
1 parent 8d0041e commit 86e6dd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/transactiondesc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
9191
if (nNet > 0)
9292
{
9393
// Credit
94-
if (IsValidDestinationString(rec->address)) {
95-
CTxDestination address = DecodeDestination(rec->address);
94+
CTxDestination address = DecodeDestination(rec->address);
95+
if (IsValidDestination(address)) {
9696
if (wallet->mapAddressBook.count(address))
9797
{
9898
strHTML += "<b>" + tr("From") + ":</b> " + tr("unknown") + "<br>";

0 commit comments

Comments
 (0)