diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-05 10:32:35 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-19 13:24:49 -0500 |
commit | be237c119e82a4c01f4ef3da4264faa6c900e9e3 (patch) | |
tree | 68e672f788c7242a32153208f5511eea4f510ae1 /src | |
parent | 2a45a494b0bec6a0f1fc6ab7f26c260b85e7ff3e (diff) |
Fix logic for IsChange() for send-to-self transactions.
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet.cpp | 2 |
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; |