aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-12-14 13:08:26 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-12-14 13:08:35 +0100
commitdc511dcfd9eaa82a773d0a402b1500c3fd9113e0 (patch)
tree13c9fa5ebf485a416a5f0e3d207c8fce7ca2b5fe /src
parent5f3c670d1222a6a75236b0201946e36875a80c25 (diff)
parentd812daf967ba4173bfa1c37eeb4ab7a0ccc4df25 (diff)
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)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index f3911f314a..2cbb89e5a8 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1034,7 +1034,8 @@ void CWalletTx::GetAmounts(list<COutputEntry>& listReceived,
// In either case, we need to get the destination address
CTxDestination address;
- if (!ExtractDestination(txout.scriptPubKey, address))
+
+ if (!ExtractDestination(txout.scriptPubKey, address) && !txout.scriptPubKey.IsUnspendable())
{
LogPrintf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
this->GetHash().ToString());