From 6f074b71bb4c21e0a3ce059a64be1e9383538413 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Tue, 5 Apr 2011 15:15:20 -0400 Subject: [PATCH] RPC sendmany must acquire cs_main lock --- rpc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc.cpp b/rpc.cpp index a634fff69..6041de056 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