message: Fix encrypted wallet rpc calls help
diff: @@ -2949,7 +2949,7 @@ UniValue walletpassphrase(const JSONRPCRequest& request)
  return NullUniValue;
  }
  - if (pwallet->IsCrypted() && (request.fHelp || request.params.size() < 2 || request.params.size() > 3)) {
  + if (request.fHelp || (pwallet->IsCrypted() && (request.params.size() < 2 || request.params.size() > 3))) {
  throw std::runtime_error(
  "walletpassphrase \"passphrase\" timeout stakingonly\n"
  "\nStores the wallet decryption key in memory for 'timeout' seconds.\n"
  @@ -3037,7 +3037,7 @@ UniValue walletpassphrasechange(const JSONRPCRequest& request)
  return NullUniValue;
  }
  - if (pwallet->IsCrypted() && (request.fHelp || request.params.size() != 2)) {
  + if (request.fHelp || (pwallet->IsCrypted() && (request.params.size() != 2))) {
  throw std::runtime_error(
  "walletpassphrasechange \"oldpassphrase\" \"newpassphrase\"\n"
  "\nChanges the wallet passphrase from 'oldpassphrase' to 'newpassphrase'.\n"
  @@ -3088,7 +3088,7 @@ UniValue walletlock(const JSONRPCRequest& request)
  return NullUniValue;
  }
  - if (pwallet->IsCrypted() && (request.fHelp || request.params.size() != 0)) {
  + if (request.fHelp || (pwallet->IsCrypted() && (request.params.size() != 0))) {
  throw std::runtime_error(
  "walletlock\n"
  "\nRemoves the wallet encryption key from memory, locking the wallet.\n"
  @@ -3128,7 +3128,7 @@ UniValue encryptwallet(const JSONRPCRequest& request)
  return NullUniValue;
  }
  - if (!pwallet->IsCrypted() && (request.fHelp || request.params.size() != 1)) {
  + if (request.fHelp || (!pwallet->IsCrypted() && (request.params.size() != 1))) {
  throw std::runtime_error(
  "encryptwallet \"passphrase\"\n"
  "\nEncrypts the wallet with 'passphrase'. This is for first time encryption.\n"
  