@@ -230,22 +230,8 @@ class NodeImpl : public Node
230230 CoinJoinOptionsImpl m_coinjoin;
231231
232232 explicit NodeImpl (NodeContext* context) { setContext (context); }
233- void initError (const bilingual_str& message) override { InitError (message); }
234- bool parseParameters (int argc, const char * const argv[], std::string& error) override
235- {
236- return gArgs .ParseParameters (argc, argv, error);
237- }
238- bool readConfigFiles (std::string& error) override { return gArgs .ReadConfigFiles (error, true ); }
239- void forceSetArg (const std::string& arg, const std::string& value) override { gArgs .ForceSetArg (arg, value); }
240- bool softSetArg (const std::string& arg, const std::string& value) override { return gArgs .SoftSetArg (arg, value); }
241- bool softSetBoolArg (const std::string& arg, bool value) override { return gArgs .SoftSetBoolArg (arg, value); }
242- void selectParams (const std::string& network) override { SelectParams (network); }
243- bool initSettings (std::string& error) override { return gArgs .InitSettings (error); }
244- uint64_t getAssumedBlockchainSize () override { return Params ().AssumedBlockchainSize (); }
245- uint64_t getAssumedChainStateSize () override { return Params ().AssumedChainStateSize (); }
246- std::string getNetwork () override { return Params ().NetworkIDString (); }
247- void initLogging () override { InitLogging (gArgs ); }
248- void initParameterInteraction () override { InitParameterInteraction (gArgs ); }
233+ void initLogging () override { InitLogging (*Assert (m_context->args )); }
234+ void initParameterInteraction () override { InitParameterInteraction (*Assert (m_context->args )); }
249235 bilingual_str getWarnings () override { return GetWarnings (true ); }
250236 uint64_t getLogCategories () override { return LogInstance ().GetCategoryMask (); }
251237 bool baseInitialize () override
@@ -271,7 +257,6 @@ class NodeImpl : public Node
271257 void startShutdown () override { StartShutdown (); }
272258 bool shutdownRequested () override { return ShutdownRequested (); }
273259 void mapPort (bool use_upnp, bool use_natpmp) override { StartMapPort (use_upnp, use_natpmp); }
274- void setupServerArgs () override { return SetupServerArgs (*m_context); }
275260 bool getProxy (Network net, proxyType& proxy_info) override { return GetProxy (net, proxy_info); }
276261 size_t getNodeCount (CConnman::NumConnections flags) override
277262 {
0 commit comments