RPC sendmany must acquire cs_main lock
authorJeff Garzik <jeff@garzik.org>
Tue, 5 Apr 2011 19:15:20 +0000 (15:15 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 5 Apr 2011 19:15:20 +0000 (15:15 -0400)
rpc.cpp

diff --git a/rpc.cpp b/rpc.cpp
index a634fff..6041de0 100644 (file)
--- 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