MCPcopy Create free account
hub / github.com/LUX-Core/lux / AppInitServers

Function AppInitServers

src/init.cpp:733–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733bool AppInitServers()
734{
735 RPCServer::OnStopped(&OnRPCStopped);
736 RPCServer::OnPreCommand(&OnRPCPreCommand);
737 if (!InitHTTPServer())
738 return false;
739 if (!StartRPC())
740 return false;
741 if (!StartHTTPRPC())
742 return false;
743 if (GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST())
744 return false;
745 if (!StartHTTPServer())
746 return false;
747 return true;
748}
749
750/** Initialize lux.
751 * @pre Parameters should be parsed and config file should be read.

Callers 1

AppInit2Function · 0.85

Calls 6

InitHTTPServerFunction · 0.85
StartRPCFunction · 0.85
StartHTTPRPCFunction · 0.85
GetBoolArgFunction · 0.85
StartRESTFunction · 0.85
StartHTTPServerFunction · 0.85

Tested by

no test coverage detected