Skip to content

Commit

Permalink
Merge pull request #7 from reddink/missing_lock
Browse files Browse the repository at this point in the history
Add Missing lock
  • Loading branch information
lateminer authored Jan 29, 2024
2 parents 4b5d7f3 + 0955f34 commit c7a8bfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,7 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc

void CWallet::AbandonOrphanedCoinstakes()
{
LOCK(cs_wallet);
for (std::pair<const uint256, CWalletTx>& item : mapWallet) {
const uint256& wtxid = item.first;
CWalletTx& wtx = item.second;
Expand Down

0 comments on commit c7a8bfb

Please sign in to comment.