Skip to content

Commit

Permalink
Merge #883: fix GetAnonymizableCredit
Browse files Browse the repository at this point in the history
a78ad41 fix GetAnonymizableCredit
  • Loading branch information
UdjinM6 authored and schinzelh committed Jun 13, 2016
1 parent b43381c commit 2252f30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2252f30

Please sign in to comment.