Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoin.cpp
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | void BitcoinABC::handleRunawayException(const std::exception *e) { | ||||
PrintExceptionContinue(e, "Runaway exception"); | PrintExceptionContinue(e, "Runaway exception"); | ||||
Q_EMIT runawayException( | Q_EMIT runawayException( | ||||
QString::fromStdString(m_node.getWarnings().translated)); | QString::fromStdString(m_node.getWarnings().translated)); | ||||
} | } | ||||
void BitcoinABC::initialize(Config *config, RPCServer *rpcServer, | void BitcoinABC::initialize(Config *config, RPCServer *rpcServer, | ||||
HTTPRPCRequestProcessor *httpRPCRequestProcessor) { | HTTPRPCRequestProcessor *httpRPCRequestProcessor) { | ||||
try { | try { | ||||
qDebug() << __func__ << ": Running initialization in thread"; | |||||
util::ThreadRename("qt-init"); | util::ThreadRename("qt-init"); | ||||
qDebug() << __func__ << ": Running initialization in thread"; | |||||
interfaces::BlockAndHeaderTipInfo tip_info; | interfaces::BlockAndHeaderTipInfo tip_info; | ||||
bool rv = m_node.appInitMain(*config, *rpcServer, | bool rv = m_node.appInitMain(*config, *rpcServer, | ||||
*httpRPCRequestProcessor, &tip_info); | *httpRPCRequestProcessor, &tip_info); | ||||
Q_EMIT initializeResult(rv, tip_info); | Q_EMIT initializeResult(rv, tip_info); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
handleRunawayException(&e); | handleRunawayException(&e); | ||||
} catch (...) { | } catch (...) { | ||||
handleRunawayException(nullptr); | handleRunawayException(nullptr); | ||||
▲ Show 20 Lines • Show All 614 Lines • Show Last 20 Lines |