Browse Source

Fix -disablewallet default value

0.16
João Barbosa 7 years ago
parent
commit
7963335d25
  1. 7
      src/wallet/init.cpp

7
src/wallet/init.cpp

@ -178,15 +178,18 @@ bool WalletParameterInteraction() @@ -178,15 +178,18 @@ bool WalletParameterInteraction()
void RegisterWalletRPC(CRPCTable &t)
{
if (gArgs.GetBoolArg("-disablewallet", false)) return;
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
return;
}
RegisterWalletRPCCommands(t);
}
bool VerifyWallets()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
return true;
}
uiInterface.InitMessage(_("Verifying wallet(s)..."));

Loading…
Cancel
Save