diff options
| author | accraze <[email protected]> | 2015-12-12 10:33:37 -0800 |
|---|---|---|
| committer | accraze <[email protected]> | 2015-12-12 10:33:37 -0800 |
| commit | c611acc38a95d336a824b632823aa1b652e570df (patch) | |
| tree | c81aa1f6ae392d71b0ff4b46b0e1999b83ea0d80 /src/wallet/wallet.cpp | |
| parent | checks for null data transaction before debug.log (diff) | |
| download | discoin-c611acc38a95d336a824b632823aa1b652e570df.tar.xz discoin-c611acc38a95d336a824b632823aa1b652e570df.zip | |
wallet: check if tx scriptPubKey is unspendable
Diffstat (limited to 'src/wallet/wallet.cpp')
| -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 a45a9367a..82f3b42b5 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()); |