Remove LOCK(cs_main) from decodescript

Completely static RPC call that doesn't change or even look at mutable
state anywhere.
This commit is contained in:
Peter Todd 2015-11-13 17:19:33 -05:00
parent dbd2c135dd
commit b3ae384a8d
No known key found for this signature in database
GPG Key ID: C085F21CE7F4B9DC

View File

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