aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-12-14 13:08:26 +0100
committerWladimir J. van der Laan <[email protected]>2015-12-14 13:08:35 +0100
commitdc511dcfd9eaa82a773d0a402b1500c3fd9113e0 (patch)
tree13c9fa5ebf485a416a5f0e3d207c8fce7ca2b5fe /src/wallet/wallet.cpp
parentMerge pull request #7068 (diff)
parentfix logic for error log (diff)
downloaddiscoin-dc511dcfd9eaa82a773d0a402b1500c3fd9113e0.tar.xz
discoin-dc511dcfd9eaa82a773d0a402b1500c3fd9113e0.zip
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/wallet/wallet.cpp')
-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 f3911f314..2cbb89e5a 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());