Skip to content

Commit

Permalink
Remove LOCK(cs_main) from decodescript
Browse files Browse the repository at this point in the history
Completely static RPC call that doesn't change or even look at mutable
state anywhere.

zcash: cherry picked b3ae384
zcash: bitcoin/bitcoin#7013
  • Loading branch information
petertodd authored and LarryRuane committed Feb 18, 2021
1 parent a960e89 commit bc3da48
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,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);
Expand Down

0 comments on commit bc3da48

Please sign in to comment.