Fix -disablewallet default value
This commit is contained in:
parent
b411c2a12a
commit
7963335d25
1 changed files with 5 additions and 2 deletions
|
@ -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…
Reference in a new issue