message: [Wallet] Add parameter interaction between -disablewallet and -staking
diff: @@ -754,8 +754,16 @@ bool AppInit2(boost::thread_group& threadGroup)
  fServer = GetBoolArg("-server", false);
  setvbuf(stdout, NULL, _IOLBF, 0); /// ***TODO*** do we still need this after -printtoconsole is gone?
  +
  + // Staking needs a CWallet instance, so make sure wallet is enabled
  #ifdef ENABLE_WALLET
  bool fDisableWallet = GetBoolArg("-disablewallet", false);
  + if (fDisableWallet) {
  +#endif
  + if (SoftSetBoolArg("-staking", false))
  + LogPrintf("AppInit2 : parameter interaction: wallet functionality not enabled -> setting -staking=0\n");
  +#ifdef ENABLE_WALLET
  + }
  #endif
  nConnectTimeout = GetArg("-timeout", DEFAULT_CONNECT_TIMEOUT);
  