Sync test: run until fully synced
Old shortcut is not needed anymore
This commit is contained in:
@@ -37,9 +37,6 @@ MergeMiningClient::MergeMiningClient(p2pool* pool, const std::string& host, cons
|
|||||||
, m_loopThread{}
|
, m_loopThread{}
|
||||||
, m_timer{}
|
, m_timer{}
|
||||||
, m_getJobRunning(false)
|
, m_getJobRunning(false)
|
||||||
#ifdef DEV_TEST_SYNC
|
|
||||||
, m_getJobCounter(0)
|
|
||||||
#endif
|
|
||||||
, m_shutdownAsync{}
|
, m_shutdownAsync{}
|
||||||
{
|
{
|
||||||
const size_t k = host.find_last_of(':');
|
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)
|
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) {
|
if (m_getJobRunning) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,10 +71,6 @@ private:
|
|||||||
|
|
||||||
bool m_getJobRunning;
|
bool m_getJobRunning;
|
||||||
|
|
||||||
#ifdef DEV_TEST_SYNC
|
|
||||||
uint32_t m_getJobCounter;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uv_async_t m_shutdownAsync;
|
uv_async_t m_shutdownAsync;
|
||||||
|
|
||||||
static void on_shutdown(uv_async_t* async)
|
static void on_shutdown(uv_async_t* async)
|
||||||
|
|||||||
Reference in New Issue
Block a user