Mercurial > hg > bitcoin
changeset 1605:f3595c50b020 draft
Fix logic for IsChange() for send-to-self transactions.
author | Gavin Andresen <gavinandresen@gmail.com> |
---|---|
date | Mon, 05 Dec 2011 10:32:35 -0500 |
parents | 2d635cbb6a2d |
children | de07341137cd |
files | src/wallet.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -394,7 +394,7 @@ // 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;