Merge #883: fix GetAnonymizableCredit

a78ad41 fix GetAnonymizableCredit
This commit is contained in:
UdjinM6 2016-06-13 10:39:28 +04:00 committed by Holger Schinzel
parent b43381c2c6
commit 2252f30a66

View File

@ -3846,12 +3846,16 @@ void CWallet::LockCoin(COutPoint& output)
{
AssertLockHeld(cs_wallet); // setLockedCoins
setLockedCoins.insert(output);
std::map<uint256, CWalletTx>::iterator it = mapWallet.find(output.hash);
if (it != mapWallet.end()) it->second.MarkDirty(); // recalculate all credits for this tx
}
void CWallet::UnlockCoin(COutPoint& output)
{
AssertLockHeld(cs_wallet); // setLockedCoins
setLockedCoins.erase(output);
std::map<uint256, CWalletTx>::iterator it = mapWallet.find(output.hash);
if (it != mapWallet.end()) it->second.MarkDirty(); // recalculate all credits for this tx
}
void CWallet::UnlockAllCoins()