aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-12-05 10:32:35 -0500
committerGavin Andresen <gavinandresen@gmail.com>2011-12-19 13:24:49 -0500
commitbe237c119e82a4c01f4ef3da4264faa6c900e9e3 (patch)
tree68e672f788c7242a32153208f5511eea4f510ae1 /src/wallet.cpp
parent2a45a494b0bec6a0f1fc6ab7f26c260b85e7ff3e (diff)
downloadbitcoin-be237c119e82a4c01f4ef3da4264faa6c900e9e3.tar.xz
Fix logic for IsChange() for send-to-self transactions.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 25eb6247ff..3dc804c851 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -394,7 +394,7 @@ bool CWallet::IsChange(const CTxOut& txout) const
// a better way of identifying which outputs are 'the send' and which are
// 'the change' will need to be implemented (maybe extend CWalletTx to remember
// which output, if any, was change).
- if (ExtractAddress(txout.scriptPubKey, this, address) && !address.IsScript())
+ if (ExtractAddress(txout.scriptPubKey, this, address))
CRITICAL_BLOCK(cs_wallet)
if (!mapAddressBook.count(address))
return true;