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

Function MakeNodeInit

src/init/bitcoin-node.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44namespace interfaces {
45std::unique_ptr<Init> MakeNodeInit(node::NodeContext& node, int argc, char* argv[], int& exit_status)
46{
47 auto init = std::make_unique<init::BitcoinNodeInit>(node, argc > 0 ? argv[0] : "");
48 // Check if bitcoin-node is being invoked as an IPC server. If so, then
49 // bypass normal execution and just respond to requests over the IPC
50 // channel and return null.
51 if (init->m_ipc->startSpawnedProcess(argc, argv, exit_status)) {
52 return nullptr;
53 }
54 return init;
55}
56} // namespace interfaces

Callers

nothing calls this directly

Calls 1

startSpawnedProcessMethod · 0.80

Tested by

no test coverage detected