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

Method initialize

src/qt/initexecutor.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void 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
57void InitExecutor::shutdown()
58{

Callers

nothing calls this directly

Calls 2

ObjectInvokeFunction · 0.85
appInitMainMethod · 0.80

Tested by

no test coverage detected