Skip to content

Commit

Permalink
pos: add missing lock that was raising assert
Browse files Browse the repository at this point in the history
  • Loading branch information
reddink committed Jan 29, 2024
1 parent c1e5fa7 commit 0955f34
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 0955f34

Please sign in to comment.