aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authoraccraze <accraze@gmail.com>2015-12-12 10:33:37 -0800
committeraccraze <accraze@gmail.com>2015-12-12 10:33:37 -0800
commitc611acc38a95d336a824b632823aa1b652e570df (patch)
treec81aa1f6ae392d71b0ff4b46b0e1999b83ea0d80 /src/wallet
parentb6915b82398d2e1d1f888b3816adfaf06d9a450e (diff)
wallet: check if tx scriptPubKey is unspendable
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index a45a9367ad..82f3b42b55 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1035,7 +1035,7 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
// In either case, we need to get the destination address
CTxDestination address;
- if (!ExtractDestination(txout.scriptPubKey, address) && txout.scriptPubKey[0] != OP_RETURN)
+ if (!ExtractDestination(txout.scriptPubKey, address) && txout.scriptPubKey.IsUnspendable())
{
LogPrintf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
this->GetHash().ToString());