Skip to content

Commit

Permalink
rpc: remove cs_main lock from createrawtransaction
Browse files Browse the repository at this point in the history
This is a pure utility function that doesn't use
main's data structures, so it does not require that lock.
  • Loading branch information
laanwj committed Dec 2, 2015
1 parent 7c7a05d commit 6e76587
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rpcrawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ UniValue createrawtransaction(const UniValue& params, bool fHelp)
+ HelpExampleRpc("createrawtransaction", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\", \"{\\\"data\\\":\\\"00010203\\\"}\"")
);

LOCK(cs_main);
RPCTypeCheck(params, boost::assign::list_of(UniValue::VARR)(UniValue::VOBJ)(UniValue::VNUM), true);
if (params[0].isNull() || params[1].isNull())
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, arguments 1 and 2 must be non-null");
Expand Down

0 comments on commit 6e76587

Please sign in to comment.