From b3ae384a8d1606948427b7bd2059d781a779b62a Mon Sep 17 00:00:00 2001 From: Peter Todd Date: Fri, 13 Nov 2015 17:19:33 -0500 Subject: [PATCH] Remove LOCK(cs_main) from decodescript Completely static RPC call that doesn't change or even look at mutable state anywhere. --- src/rpcrawtransaction.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 11d9a6f2bb..3bda459245 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -506,7 +506,6 @@ UniValue decodescript(const UniValue& params, bool fHelp) + HelpExampleRpc("decodescript", "\"hexstring\"") ); - LOCK(cs_main); RPCTypeCheck(params, boost::assign::list_of(UniValue::VSTR)); UniValue r(UniValue::VOBJ);