Require -experimentalmode for wallet encryption

This commit is contained in:
Jack Grigg
2017-02-08 12:46:01 +00:00
parent 1f015f6afa
commit b8eb37757b
4 changed files with 10 additions and 3 deletions

View File

@@ -2002,7 +2002,7 @@ Value encryptwallet(const Array& params, bool fHelp)
if (!EnsureWalletIsAvailable(fHelp))
return Value::null;
auto fEnableWalletEncryption = GetBoolArg("-developerencryptwallet", false);
auto fEnableWalletEncryption = fExperimentalMode && GetBoolArg("-developerencryptwallet", false);
std::string strWalletEncryptionDisabledMsg = "";
if (!fEnableWalletEncryption) {