Skip to content

Commit

Permalink
Merge pull request #7156
Browse files Browse the repository at this point in the history
6e76587 rpc: remove cs_main lock from `createrawtransaction` (Wladimir J. van der Laan)
  • Loading branch information
laanwj committed Dec 11, 2015
2 parents d1e17ff + 6e76587 commit 9ee02cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rpcrawtransaction.cpp
Expand Up @@ -353,7 +353,6 @@ UniValue createrawtransaction(const UniValue& params, bool fHelp)
+ HelpExampleRpc("createrawtransaction", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\", \"{\\\"data\\\":\\\"00010203\\\"}\"") + HelpExampleRpc("createrawtransaction", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\", \"{\\\"data\\\":\\\"00010203\\\"}\"")
); );


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

0 comments on commit 9ee02cf

Please sign in to comment.