diff options
author | accraze <accraze@gmail.com> | 2015-12-12 10:33:37 -0800 |
---|---|---|
committer | accraze <accraze@gmail.com> | 2015-12-12 10:33:37 -0800 |
commit | c611acc38a95d336a824b632823aa1b652e570df (patch) | |
tree | c81aa1f6ae392d71b0ff4b46b0e1999b83ea0d80 | |
parent | b6915b82398d2e1d1f888b3816adfaf06d9a450e (diff) |
wallet: check if tx scriptPubKey is unspendable
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
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()); |