Skip to content

Commit d812daf

Browse files
committed
fix logic for error log
1 parent c611acc commit d812daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
10351035
// In either case, we need to get the destination address
10361036
CTxDestination address;
10371037

1038-
if (!ExtractDestination(txout.scriptPubKey, address) && txout.scriptPubKey.IsUnspendable())
1038+
if (!ExtractDestination(txout.scriptPubKey, address) && !txout.scriptPubKey.IsUnspendable())
10391039
{
10401040
LogPrintf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
10411041
this->GetHash().ToString());

0 commit comments

Comments
 (0)