diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-12-14 13:08:26 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-12-14 13:08:35 +0100 |
| commit | dc511dcfd9eaa82a773d0a402b1500c3fd9113e0 (patch) | |
| tree | 13c9fa5ebf485a416a5f0e3d207c8fce7ca2b5fe /src/wallet/wallet.cpp | |
| parent | Merge pull request #7068 (diff) | |
| parent | fix logic for error log (diff) | |
| download | discoin-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.cpp | 3 |
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()); |