| 43 | |
| 44 | namespace interfaces { |
| 45 | std::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 |
nothing calls this directly
no test coverage detected