Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | class NodeImpl : public Node { | ||||
SelectParams(network); | SelectParams(network); | ||||
} | } | ||||
std::string getNetwork() override { return Params().NetworkIDString(); } | std::string getNetwork() override { return Params().NetworkIDString(); } | ||||
void initLogging() override { InitLogging(); } | void initLogging() override { InitLogging(); } | ||||
void initParameterInteraction() override { InitParameterInteraction(); } | void initParameterInteraction() override { InitParameterInteraction(); } | ||||
std::string getWarnings(const std::string &type) override { | std::string getWarnings(const std::string &type) override { | ||||
return GetWarnings(type); | return GetWarnings(type); | ||||
} | } | ||||
bool baseInitialize(Config &config, RPCServer &rpcServer) override { | bool baseInitialize(Config &config) override { | ||||
return AppInitBasicSetup() && | return AppInitBasicSetup() && AppInitParameterInteraction(config) && | ||||
AppInitParameterInteraction(config, rpcServer) && | |||||
AppInitSanityChecks() && AppInitLockDataDirectory(); | AppInitSanityChecks() && AppInitLockDataDirectory(); | ||||
} | } | ||||
bool | bool | ||||
appInitMain(Config &config, | appInitMain(Config &config, RPCServer &rpcServer, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor) override { | HTTPRPCRequestProcessor &httpRPCRequestProcessor) override { | ||||
return AppInitMain(config, httpRPCRequestProcessor); | return AppInitMain(config, rpcServer, httpRPCRequestProcessor); | ||||
} | } | ||||
void appShutdown() override { | void appShutdown() override { | ||||
Interrupt(); | Interrupt(); | ||||
Shutdown(); | Shutdown(); | ||||
} | } | ||||
void startShutdown() override { StartShutdown(); } | void startShutdown() override { StartShutdown(); } | ||||
bool shutdownRequested() override { return ShutdownRequested(); } | bool shutdownRequested() override { return ShutdownRequested(); } | ||||
void mapPort(bool use_upnp) override { | void mapPort(bool use_upnp) override { | ||||
▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines |