This moves the disablewallet logic from init.cpp to wallet.cpp
C.f. #7965
This moves the disablewallet logic from init.cpp to wallet.cpp
C.f. #7965
3295 | @@ -3293,6 +3296,12 @@ std::string CWallet::GetWalletHelpString(bool showDebug) 3296 | 3297 | bool CWallet::InitLoadWallet() 3298 | { 3299 | + if (GetBoolArg("-disablewallet", false)) {
I wonder why we don't have a constant DEFAULT_DISABLEWALLET like for the other args.
Maybe some constants are too obvious to have a default value. In the future this might change for -disablewallet and we should introduce the default value.
But for consistency it'd make sense to have one. When changing the default it's easy enough to forget one of the GetArgs().
Concept ACK