RPC sendmany must acquire cs_main lock

This commit is contained in:
Jeff Garzik 2011-04-05 15:15:20 -04:00 committed by Jeff Garzik
parent f5f1878ba1
commit 6f074b71bb
1 changed files with 1 additions and 0 deletions

View File

@ -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