mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-09 05:34:24 +00:00
Fix logic for IsChange() for send-to-self transactions.
This commit is contained in:
parent
2a45a494b0
commit
be237c119e
@ -394,7 +394,7 @@ bool CWallet::IsChange(const CTxOut& txout) const
|
|||||||
// a better way of identifying which outputs are 'the send' and which are
|
// 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
|
// 'the change' will need to be implemented (maybe extend CWalletTx to remember
|
||||||
// which output, if any, was change).
|
// which output, if any, was change).
|
||||||
if (ExtractAddress(txout.scriptPubKey, this, address) && !address.IsScript())
|
if (ExtractAddress(txout.scriptPubKey, this, address))
|
||||||
CRITICAL_BLOCK(cs_wallet)
|
CRITICAL_BLOCK(cs_wallet)
|
||||||
if (!mapAddressBook.count(address))
|
if (!mapAddressBook.count(address))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user