diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 9533e6ff5..d47b8865b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -598,6 +598,8 @@ void CWallet::AddToSpends(const COutPoint& outpoint, const uint256& wtxid) { mapTxSpends.insert(std::make_pair(outpoint, wtxid)); + setLockedCoins.erase(outpoint); + std::pair range; range = mapTxSpends.equal_range(outpoint); SyncMetaData(range);