Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | public: | ||||
void initLogging() override { InitLogging(*Assert(m_context->args)); } | void initLogging() override { InitLogging(*Assert(m_context->args)); } | ||||
void initParameterInteraction() override { | void initParameterInteraction() override { | ||||
InitParameterInteraction(*Assert(m_context->args)); | InitParameterInteraction(*Assert(m_context->args)); | ||||
} | } | ||||
bilingual_str getWarnings() override { return GetWarnings(true); } | bilingual_str getWarnings() override { return GetWarnings(true); } | ||||
bool baseInitialize(Config &config) override { | bool baseInitialize(Config &config) override { | ||||
return AppInitBasicSetup(gArgs) && | return AppInitBasicSetup(gArgs) && | ||||
AppInitParameterInteraction(config, gArgs) && | AppInitParameterInteraction(config, gArgs) && | ||||
AppInitSanityChecks() && AppInitLockDataDirectory(); | AppInitSanityChecks() && AppInitLockDataDirectory() && | ||||
AppInitInterfaces(*m_context); | |||||
} | } | ||||
bool appInitMain(Config &config, RPCServer &rpcServer, | bool appInitMain(Config &config, RPCServer &rpcServer, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor, | HTTPRPCRequestProcessor &httpRPCRequestProcessor, | ||||
interfaces::BlockAndHeaderTipInfo *tip_info) override { | interfaces::BlockAndHeaderTipInfo *tip_info) override { | ||||
m_context->chain = MakeChain(*m_context, config.GetChainParams()); | |||||
return AppInitMain(config, rpcServer, httpRPCRequestProcessor, | return AppInitMain(config, rpcServer, httpRPCRequestProcessor, | ||||
*m_context, tip_info); | *m_context, tip_info); | ||||
} | } | ||||
void appShutdown() override { | void appShutdown() override { | ||||
Interrupt(*m_context); | Interrupt(*m_context); | ||||
Shutdown(*m_context); | Shutdown(*m_context); | ||||
} | } | ||||
void startShutdown() override { | void startShutdown() override { | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |