1
0
Fork 0
forked from lthn/blockchain

fixed wallet pulling daemon like there is no tomorrow

This commit is contained in:
cryptozoidberg 2020-05-26 00:21:28 +02:00
parent 9fc930230a
commit 1458032e93
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -649,16 +649,9 @@ void wallets_manager::loop()
}
{
std::unique_lock<std::mutex> lk(m_stop_singal_sent_mutex);
m_stop_singal_sent_mutex_cv.wait_for(lk, std::chrono::microseconds(DAEMON_IDLE_UPDATE_TIME_MS), [&] {return m_stop_singal_sent.load(); });
m_stop_singal_sent_mutex_cv.wait_for(lk, std::chrono::milliseconds(DAEMON_IDLE_UPDATE_TIME_MS), [&] {return m_stop_singal_sent.load(); });
}
}
// while(!m_stop_singal_sent)
// {
// update_state_info();
// std::this_thread::sleep_for(std::chrono::milliseconds(DAEMON_IDLE_UPDATE_TIME_MS));
// }
}
void wallets_manager::init_wallet_entry(wallet_vs_options& wo, uint64_t id)