Port upstream rpc deadlock fix #77

This commit is contained in:
Duke Leto
2021-10-30 12:21:58 -04:00
parent 44ed2bd075
commit e04465983c

View File

@@ -827,6 +827,7 @@ protected:
return; return;
} }
try { try {
LOCK(cs_wallet);
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) { for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
auto wtx = wtxItem.second; auto wtx = wtxItem.second;
// We skip transactions for which mapSaplingNoteData // We skip transactions for which mapSaplingNoteData