| 38 | } |
| 39 | |
| 40 | void InitExecutor::initialize() |
| 41 | { |
| 42 | GUIUtil::ObjectInvoke(&m_context, [this] { |
| 43 | try { |
| 44 | util::ThreadRename("qt-init"); |
| 45 | qDebug() << "Running initialization in thread"; |
| 46 | interfaces::BlockAndHeaderTipInfo tip_info; |
| 47 | bool rv = m_node.appInitMain(&tip_info); |
| 48 | Q_EMIT initializeResult(rv, tip_info); |
| 49 | } catch (const std::exception& e) { |
| 50 | handleRunawayException(&e); |
| 51 | } catch (...) { |
| 52 | handleRunawayException(nullptr); |
| 53 | } |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | void InitExecutor::shutdown() |
| 58 | { |
nothing calls this directly
no test coverage detected