Skip to content

Commit dc511dc

Browse files
committed
Merge pull request #7200
d812daf fix logic for error log (accraze) c611acc wallet: check if tx scriptPubKey is unspendable (accraze) b6915b8 checks for null data transaction before debug.log (accraze)
2 parents 5f3c670 + d812daf commit dc511dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,8 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
10341034

10351035
// In either case, we need to get the destination address
10361036
CTxDestination address;
1037-
if (!ExtractDestination(txout.scriptPubKey, address))
1037+
1038+
if (!ExtractDestination(txout.scriptPubKey, address) && !txout.scriptPubKey.IsUnspendable())
10381039
{
10391040
LogPrintf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
10401041
this->GetHash().ToString());

0 commit comments

Comments
 (0)