| 80 | return Assert(m_context)->exit_status.load(); |
| 81 | } |
| 82 | bool baseInitialize(Config &config) override { |
| 83 | if (!AppInitBasicSetup(gArgs, Assert(context())->exit_status)) { |
| 84 | return false; |
| 85 | } |
| 86 | if (!AppInitParameterInteraction(config, gArgs)) { |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | m_context->kernel = std::make_unique<kernel::Context>(); |
| 91 | if (!AppInitSanityChecks(*m_context->kernel)) { |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | if (!AppInitLockDataDirectory()) { |
| 96 | return false; |
| 97 | } |
| 98 | if (!AppInitInterfaces(*m_context)) { |
| 99 | return false; |
| 100 | } |
| 101 | |
| 102 | return true; |
| 103 | } |
| 104 | bool appInitMain(Config &config, RPCServer &rpcServer, |
| 105 | HTTPRPCRequestProcessor &httpRPCRequestProcessor, |
| 106 | interfaces::BlockAndHeaderTipInfo *tip_info) override { |
nothing calls this directly
no test coverage detected