diff --git a/libethcore/Farm.h b/libethcore/Farm.h index 9acb375ad..581f8bd60 100644 --- a/libethcore/Farm.h +++ b/libethcore/Farm.h @@ -68,6 +68,7 @@ public: void setWork(WorkPackage const& _wp) { WriteGuard l(x_minerWork); + cdebug << "Farm::setWork()"; if (_wp.headerHash == m_work.headerHash) return; m_work = _wp; @@ -94,6 +95,7 @@ public: void stop() { WriteGuard l(x_minerWork); + cdebug << "Farm::stop()"; m_miners.clear(); m_work.reset(); m_isMining = false; @@ -175,6 +177,7 @@ private: bool start() { WriteGuard l(x_minerWork); + cdebug << "start()"; if (!m_miners.empty() && !!std::dynamic_pointer_cast(m_miners[0])) return true; m_miners.clear(); diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index e2a33c603..cb19feb9c 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -702,7 +702,7 @@ void Client::onChainChanged(ImportRoute const& _ir) // RESTART MINING - if (!m_bq.items().first) + if (!isSyncing()) { bool preChanged = false; State newPreMine;