mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge #883: fix GetAnonymizableCredit
a78ad41
fix GetAnonymizableCredit
This commit is contained in:
parent
b43381c2c6
commit
2252f30a66
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user