diff --git a/rpc.cpp b/rpc.cpp index a634fff6..6041de05 100644 --- a/rpc.cpp +++ b/rpc.cpp @@ -822,6 +822,7 @@ Value sendmany(const Array& params, bool fHelp) vecSend.push_back(make_pair(scriptPubKey, nAmount)); } + CRITICAL_BLOCK(cs_main) CRITICAL_BLOCK(cs_mapWallet) { // Check funds