@@ -2363,8 +2363,6 @@ UniValue walletpassphrase(const JSONRPCRequest& request)
2363
2363
2364
2364
LOCK2 (cs_main, pwallet->cs_wallet );
2365
2365
2366
- if (request.fHelp )
2367
- return true ;
2368
2366
if (!pwallet->IsCrypted ()) {
2369
2367
throw JSONRPCError (RPC_WALLET_WRONG_ENC_STATE, " Error: running with an unencrypted wallet, but walletpassphrase was called." );
2370
2368
}
@@ -2429,8 +2427,6 @@ UniValue walletpassphrasechange(const JSONRPCRequest& request)
2429
2427
2430
2428
LOCK2 (cs_main, pwallet->cs_wallet );
2431
2429
2432
- if (request.fHelp )
2433
- return true ;
2434
2430
if (!pwallet->IsCrypted ()) {
2435
2431
throw JSONRPCError (RPC_WALLET_WRONG_ENC_STATE, " Error: running with an unencrypted wallet, but walletpassphrasechange was called." );
2436
2432
}
@@ -2485,8 +2481,6 @@ UniValue walletlock(const JSONRPCRequest& request)
2485
2481
2486
2482
LOCK2 (cs_main, pwallet->cs_wallet );
2487
2483
2488
- if (request.fHelp )
2489
- return true ;
2490
2484
if (!pwallet->IsCrypted ()) {
2491
2485
throw JSONRPCError (RPC_WALLET_WRONG_ENC_STATE, " Error: running with an unencrypted wallet, but walletlock was called." );
2492
2486
}
@@ -2532,8 +2526,6 @@ UniValue encryptwallet(const JSONRPCRequest& request)
2532
2526
2533
2527
LOCK2 (cs_main, pwallet->cs_wallet );
2534
2528
2535
- if (request.fHelp )
2536
- return true ;
2537
2529
if (pwallet->IsCrypted ()) {
2538
2530
throw JSONRPCError (RPC_WALLET_WRONG_ENC_STATE, " Error: running with an encrypted wallet, but encryptwallet was called." );
2539
2531
}
0 commit comments