Require -experimentalmode for wallet encryption

This commit is contained in:
Jack Grigg
2017-02-09 22:10:58 +00:00
parent 1f015f6afa
commit b8eb37757b
4 changed files with 10 additions and 3 deletions
+1 -1
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) {