diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 045a62048b..b53a7a29ca 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()