Browse Source

style

cl-refactor
arkpar 10 years ago
parent
commit
fbe0d01ee7
  1. 18
      libethereum/EthereumHost.cpp

18
libethereum/EthereumHost.cpp

@ -118,17 +118,17 @@ void EthereumHost::doWork()
if (m_syncStart) if (m_syncStart)
{ {
Guard l(x_sync); DEV_GUARDED(x_sync);
if (!m_sync) if (!m_sync)
{
time_t now = std::chrono::system_clock::to_time_t(chrono::system_clock::now());
if ((now - m_syncStart) > 10)
{ {
m_sync.reset(new PV60Sync(*this)); time_t now = std::chrono::system_clock::to_time_t(chrono::system_clock::now());
m_syncStart = 0; if (now - m_syncStart > 10)
m_sync->restartSync(); {
m_sync.reset(new PV60Sync(*this));
m_syncStart = 0;
m_sync->restartSync();
}
} }
}
} }
// return netChange; // return netChange;

Loading…
Cancel
Save