Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,107 Lines • ▼ Show 20 Lines | if (!Random_SanityCheck()) { | ||||
InitError("OS cryptographic RNG sanity check failure. Aborting."); | InitError("OS cryptographic RNG sanity check failure. Aborting."); | ||||
return false; | return false; | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
static bool AppInitServers(Config &config, boost::thread_group &threadGroup) { | static bool AppInitServers(Config &config, boost::thread_group &threadGroup) { | ||||
RPCServer::OnStarted(&OnRPCStarted); | RPCServerSignals::OnStarted(&OnRPCStarted); | ||||
RPCServer::OnStopped(&OnRPCStopped); | RPCServerSignals::OnStopped(&OnRPCStopped); | ||||
RPCServer::OnPreCommand(&OnRPCPreCommand); | RPCServerSignals::OnPreCommand(&OnRPCPreCommand); | ||||
if (!InitHTTPServer(config)) return false; | if (!InitHTTPServer(config)) return false; | ||||
if (!StartRPC()) return false; | if (!StartRPC()) return false; | ||||
if (!StartHTTPRPC()) return false; | if (!StartHTTPRPC()) return false; | ||||
if (gArgs.GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST()) | if (gArgs.GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST()) | ||||
return false; | return false; | ||||
if (!StartHTTPServer()) return false; | if (!StartHTTPServer()) return false; | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,130 Lines • Show Last 20 Lines |