aboutsummaryrefslogtreecommitdiff
path: root/rpc.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-04-05 15:15:20 -0400
committerJeff Garzik <jgarzik@pobox.com>2011-04-05 15:15:20 -0400
commit6f074b71bb4c21e0a3ce059a64be1e9383538413 (patch)
treee8211e7e9dd41c7b7cf729783d338909caee0b2a /rpc.cpp
parentf5f1878ba104a5d6a32eeb20b341326dca6086a5 (diff)
RPC sendmany must acquire cs_main lock
Diffstat (limited to 'rpc.cpp')
-rw-r--r--rpc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc.cpp b/rpc.cpp
index a634fff693..6041de056e 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