diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp --- a/src/qt/bitcoin.cpp +++ b/src/qt/bitcoin.cpp @@ -185,9 +185,8 @@ void BitcoinABC::initialize(Config *config, RPCServer *rpcServer, HTTPRPCRequestProcessor *httpRPCRequestProcessor) { try { - qDebug() << __func__ << ": Running initialization in thread"; util::ThreadRename("qt-init"); - + qDebug() << __func__ << ": Running initialization in thread"; interfaces::BlockAndHeaderTipInfo tip_info; bool rv = m_node.appInitMain(*config, *rpcServer, *httpRPCRequestProcessor, &tip_info); diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -52,6 +53,7 @@ // move timer to thread so that polling doesn't disturb main event loop timer->moveToThread(m_thread); m_thread->start(); + QTimer::singleShot(0, timer, []() { util::ThreadRename("qt-clientmodl"); }); subscribeToCoreSignals(); } diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #ifdef ENABLE_WALLET #include @@ -1135,6 +1136,8 @@ // Default implementation of QThread::run() simply spins up an event loop in // the thread, which is what we want. thread.start(); + QTimer::singleShot(0, executor, + []() { util::ThreadRename("qt-rpcconsole"); }); } void RPCConsole::on_tabWidget_currentChanged(int index) { diff --git a/src/qt/walletcontroller.cpp b/src/qt/walletcontroller.cpp --- a/src/qt/walletcontroller.cpp +++ b/src/qt/walletcontroller.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -42,6 +43,8 @@ m_activity_worker->moveToThread(m_activity_thread); m_activity_thread->start(); + QTimer::singleShot(0, m_activity_worker, + []() { util::ThreadRename("qt-walletctrl"); }); } // Not using the default destructor because not all member types definitions are