Browse Source

Merge pull request #7156

6e76587 rpc: remove cs_main lock from `createrawtransaction` (Wladimir J. van der Laan)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
9ee02cf564
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 1
      src/rpcrawtransaction.cpp

1
src/rpcrawtransaction.cpp

@ -353,7 +353,6 @@ UniValue createrawtransaction(const UniValue& params, bool fHelp) @@ -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");

Loading…
Cancel
Save