Skip to content

Commit 7963335

Browse files
committed
Fix -disablewallet default value
1 parent b411c2a commit 7963335

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/wallet/init.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,18 @@ bool WalletParameterInteraction()
178178

179179
void RegisterWalletRPC(CRPCTable &t)
180180
{
181-
if (gArgs.GetBoolArg("-disablewallet", false)) return;
181+
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
182+
return;
183+
}
182184

183185
RegisterWalletRPCCommands(t);
184186
}
185187

186188
bool VerifyWallets()
187189
{
188-
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
190+
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
189191
return true;
192+
}
190193

191194
uiInterface.InitMessage(_("Verifying wallet(s)..."));
192195

0 commit comments

Comments
 (0)