From 2252f30a66fb12606947554488214ba456e98a83 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 13 Jun 2016 10:39:28 +0400 Subject: [PATCH] Merge #883: fix GetAnonymizableCredit a78ad41 fix GetAnonymizableCredit --- src/wallet/wallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 045a62048b645..b53a7a29ca6ab 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3846,12 +3846,16 @@ void CWallet::LockCoin(COutPoint& output) { AssertLockHeld(cs_wallet); // setLockedCoins setLockedCoins.insert(output); + std::map::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::iterator it = mapWallet.find(output.hash); + if (it != mapWallet.end()) it->second.MarkDirty(); // recalculate all credits for this tx } void CWallet::UnlockAllCoins()