From e04465983c5896733d615d1cea76a4d08f9216cc Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sat, 30 Oct 2021 12:21:58 -0400 Subject: [PATCH] Port upstream rpc deadlock fix #77 --- src/wallet/wallet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 965ab5b22..15be2072d 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -827,6 +827,7 @@ protected: return; } try { + LOCK(cs_wallet); for (std::pair& wtxItem : mapWallet) { auto wtx = wtxItem.second; // We skip transactions for which mapSaplingNoteData