Declare flag

This commit is contained in:
jl777
2018-12-05 01:54:15 -11:00
parent 9641503a27
commit b739548812

View File

@@ -2350,7 +2350,7 @@ UniValue encryptwallet(const UniValue& params, bool fHelp)
return NullUniValue;
string enableArg = "developerencryptwallet";
flag = (komodo_acpublic(0) || ASSETCHAINS_SYMBOL[0] == 0);
int32_t flag = (komodo_acpublic(0) || ASSETCHAINS_SYMBOL[0] == 0);
auto fEnableWalletEncryption = fExperimentalMode && GetBoolArg("-" + enableArg, flag);
std::string strWalletEncryptionDisabledMsg = "";