| 125 | int getExitStatus() override { return Assert(m_context)->exit_status.load(); } |
| 126 | BCLog::CategoryMask getLogCategories() override { return LogInstance().GetCategoryMask(); } |
| 127 | bool baseInitialize() override |
| 128 | { |
| 129 | if (!AppInitBasicSetup(args(), Assert(context())->exit_status)) return false; |
| 130 | if (!AppInitParameterInteraction(args())) return false; |
| 131 | |
| 132 | m_context->warnings = std::make_unique<node::Warnings>(); |
| 133 | m_context->kernel = std::make_unique<kernel::Context>(); |
| 134 | m_context->ecc_context = std::make_unique<ECC_Context>(); |
| 135 | if (!AppInitSanityChecks(*m_context->kernel)) return false; |
| 136 | |
| 137 | if (!AppInitLockDirectories()) return false; |
| 138 | if (!AppInitInterfaces(*m_context)) return false; |
| 139 | |
| 140 | return true; |
| 141 | } |
| 142 | bool appInitMain(interfaces::BlockAndHeaderTipInfo* tip_info) override |
| 143 | { |
| 144 | if (AppInitMain(*m_context, tip_info)) return true; |
nothing calls this directly
no test coverage detected