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

Function main

src/lux-cli.cpp:307–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307int main(int argc, char* argv[])
308{
309 SetupEnvironment();
310
311 try {
312 if (!AppInitRPC(argc, argv))
313 return EXIT_FAILURE;
314 } catch (std::exception& e) {
315 PrintExceptionContinue(&e, "AppInitRPC()");
316 return EXIT_FAILURE;
317 } catch (...) {
318 PrintExceptionContinue(NULL, "AppInitRPC()");
319 return EXIT_FAILURE;
320 }
321
322 int ret = EXIT_FAILURE;
323 try {
324 ret = CommandLineRPC(argc, argv);
325 } catch (std::exception& e) {
326 PrintExceptionContinue(&e, "CommandLineRPC()");
327 } catch (...) {
328 PrintExceptionContinue(NULL, "CommandLineRPC()");
329 }
330 return ret;
331}

Callers

nothing calls this directly

Calls 4

SetupEnvironmentFunction · 0.85
AppInitRPCFunction · 0.85
PrintExceptionContinueFunction · 0.85
CommandLineRPCFunction · 0.85

Tested by

no test coverage detected