MCPcopy Create free account
hub / github.com/ElementsProject/elements / main

Function main

src/bitcoind.cpp:255–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255int main(int argc, char* argv[])
256{
257#ifdef WIN32
258 util::WinCmdLineArgs winArgs;
259 std::tie(argc, argv) = winArgs.get();
260#endif
261
262 NodeContext node;
263 int exit_status;
264 std::unique_ptr<interfaces::Init> init = interfaces::MakeNodeInit(node, argc, argv, exit_status);
265 if (!init) {
266 return exit_status;
267 }
268
269 SetupEnvironment();
270
271 // Connect bitcoind signal handlers
272 noui_connect();
273
274 return (AppInit(node, argc, argv) ? EXIT_SUCCESS : EXIT_FAILURE);
275}

Callers

nothing calls this directly

Calls 5

SetupEnvironmentFunction · 0.85
noui_connectFunction · 0.85
AppInitFunction · 0.85
MakeNodeInitFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected