MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / main

Function main

src/coind-cli.cpp:39–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int main(int argc, char* argv[])
40{
41 SetupEnvironment();
42
43 try {
44 if(!AppInitRPC(argc, argv))
45 return abs(RPC_MISC_ERROR);
46 } catch (exception& e) {
47 PrintExceptionContinue(&e, "AppInitRPC()");
48 return abs(RPC_MISC_ERROR);
49 } catch (...) {
50 PrintExceptionContinue(NULL, "AppInitRPC()");
51 return abs(RPC_MISC_ERROR);
52 }
53
54 int ret = abs(RPC_MISC_ERROR);
55 try {
56 ret = CommandLineRPC(argc, argv);
57 } catch (exception& e) {
58 PrintExceptionContinue(&e, "CommandLineRPC()");
59 } catch (...) {
60 PrintExceptionContinue(NULL, "CommandLineRPC()");
61 }
62 return ret;
63}

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