File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1515#include < QString>
1616#include < QThread>
1717
18- BitcoinCore::BitcoinCore (interfaces::Node& node) :
19- QObject(), m_node(node)
18+ BitcoinCore::BitcoinCore (interfaces::Node& node)
19+ : QObject(), m_node(node)
2020{
2121 this ->moveToThread (&m_thread);
2222 m_thread.start ();
@@ -30,16 +30,15 @@ BitcoinCore::~BitcoinCore()
3030 qDebug () << __func__ << " : Stopped thread" ;
3131}
3232
33- void BitcoinCore::handleRunawayException (const std::exception * e)
33+ void BitcoinCore::handleRunawayException (const std::exception* e)
3434{
3535 PrintExceptionContinue (e, " Runaway exception" );
3636 Q_EMIT runawayException (QString::fromStdString (m_node.getWarnings ().translated ));
3737}
3838
3939void BitcoinCore::initialize ()
4040{
41- try
42- {
41+ try {
4342 util::ThreadRename (" qt-init" );
4443 qDebug () << __func__ << " : Running initialization in thread" ;
4544 interfaces::BlockAndHeaderTipInfo tip_info;
@@ -54,8 +53,7 @@ void BitcoinCore::initialize()
5453
5554void BitcoinCore::shutdown ()
5655{
57- try
58- {
56+ try {
5957 qDebug () << __func__ << " : Running Shutdown in thread" ;
6058 m_node.appShutdown ();
6159 qDebug () << __func__ << " : Shutdown finished" ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ QT_END_NAMESPACE
1919/* * Class encapsulating Bitcoin Core startup and shutdown.
2020 * Allows running startup and shutdown in a different thread from the UI thread.
2121 */
22- class BitcoinCore : public QObject
22+ class BitcoinCore : public QObject
2323{
2424 Q_OBJECT
2525public:
@@ -33,11 +33,11 @@ public Q_SLOTS:
3333Q_SIGNALS:
3434 void initializeResult (bool success, interfaces::BlockAndHeaderTipInfo tip_info);
3535 void shutdownResult ();
36- void runawayException (const QString & message);
36+ void runawayException (const QString& message);
3737
3838private:
3939 // / Pass fatal exception message to UI thread
40- void handleRunawayException (const std::exception * e);
40+ void handleRunawayException (const std::exception* e);
4141
4242 interfaces::Node& m_node;
4343 QThread m_thread;
You can’t perform that action at this time.
0 commit comments