mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
Sync test: run until fully synced
Old shortcut is not needed anymore
This commit is contained in:
parent
9015106ca2
commit
c61ca959b2
2 changed files with 0 additions and 15 deletions
|
@ -37,9 +37,6 @@ MergeMiningClient::MergeMiningClient(p2pool* pool, const std::string& host, cons
|
|||
, m_loopThread{}
|
||||
, m_timer{}
|
||||
, m_getJobRunning(false)
|
||||
#ifdef DEV_TEST_SYNC
|
||||
, m_getJobCounter(0)
|
||||
#endif
|
||||
, m_shutdownAsync{}
|
||||
{
|
||||
const size_t k = host.find_last_of(':');
|
||||
|
@ -172,14 +169,6 @@ bool MergeMiningClient::parse_merge_mining_get_chain_id(const char* data, size_t
|
|||
|
||||
void MergeMiningClient::merge_mining_get_job(uint64_t height, const hash& prev_id, const std::string& wallet, const hash& aux_hash)
|
||||
{
|
||||
#ifdef DEV_TEST_SYNC
|
||||
if (++m_getJobCounter > 100) {
|
||||
LOGINFO(0, log::LightGreen() << "[DEV] Synchronization finished successfully, stopping P2Pool now");
|
||||
m_pool->stop();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (m_getJobRunning) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -71,10 +71,6 @@ private:
|
|||
|
||||
bool m_getJobRunning;
|
||||
|
||||
#ifdef DEV_TEST_SYNC
|
||||
uint32_t m_getJobCounter;
|
||||
#endif
|
||||
|
||||
uv_async_t m_shutdownAsync;
|
||||
|
||||
static void on_shutdown(uv_async_t* async)
|
||||
|
|
Loading…
Reference in a new issue