diff options
| author | Gavin Andresen <[email protected]> | 2011-12-05 10:32:35 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-12-19 13:24:49 -0500 |
| commit | be237c119e82a4c01f4ef3da4264faa6c900e9e3 (patch) | |
| tree | 68e672f788c7242a32153208f5511eea4f510ae1 /src/wallet.cpp | |
| parent | Use block times for 'hard' OP_EVAL switchover, and refactored EvalScript (diff) | |
| download | discoin-be237c119e82a4c01f4ef3da4264faa6c900e9e3.tar.xz discoin-be237c119e82a4c01f4ef3da4264faa6c900e9e3.zip | |
Fix logic for IsChange() for send-to-self transactions.
Diffstat (limited to 'src/wallet.cpp')
| -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 25eb6247f..3dc804c85 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; |