File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,6 @@ static UniValue decoderawtransaction(const JSONRPCRequest& request)
562
562
+ HelpExampleRpc (" decoderawtransaction" , " \" hexstring\" " )
563
563
);
564
564
565
- LOCK (cs_main);
566
565
RPCTypeCheck (request.params , {UniValue::VSTR, UniValue::VBOOL});
567
566
568
567
CMutableTransaction mtx;
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ static UniValue getnewaddress(const JSONRPCRequest& request)
165
165
throw JSONRPCError (RPC_WALLET_ERROR, " Error: Private keys are disabled for this wallet" );
166
166
}
167
167
168
- LOCK2 (cs_main, pwallet->cs_wallet );
168
+ LOCK ( pwallet->cs_wallet );
169
169
170
170
// Parse the label first so we don't generate a key if there's an error
171
171
std::string label;
@@ -276,7 +276,7 @@ static UniValue getrawchangeaddress(const JSONRPCRequest& request)
276
276
throw JSONRPCError (RPC_WALLET_ERROR, " Error: Private keys are disabled for this wallet" );
277
277
}
278
278
279
- LOCK2 (cs_main, pwallet->cs_wallet );
279
+ LOCK ( pwallet->cs_wallet );
280
280
281
281
if (!pwallet->IsLocked ()) {
282
282
pwallet->TopUpKeyPool ();
@@ -331,7 +331,7 @@ static UniValue setlabel(const JSONRPCRequest& request)
331
331
+ HelpExampleRpc (" setlabel" , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" , \" tabby\" " )
332
332
);
333
333
334
- LOCK2 (cs_main, pwallet->cs_wallet );
334
+ LOCK ( pwallet->cs_wallet );
335
335
336
336
CTxDestination dest = DecodeDestination (request.params [0 ].get_str ());
337
337
if (!IsValidDestination (dest)) {
You can’t perform that action at this time.
0 commit comments