From 0955f34ce9db68c7af92f47222da8717842979eb Mon Sep 17 00:00:00 2001 From: John Nash Date: Mon, 29 Jan 2024 14:20:59 +1100 Subject: [PATCH] pos: add missing lock that was raising assert --- src/wallet/wallet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4aaec60b27..607398d359 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1955,6 +1955,7 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc void CWallet::AbandonOrphanedCoinstakes() { + LOCK(cs_wallet); for (std::pair& item : mapWallet) { const uint256& wtxid = item.first; CWalletTx& wtx = item.second;