1
0
Fork 0
forked from lthn/blockchain

Merge branch 'predevelop' into auditability

This commit is contained in:
sowle 2020-05-26 20:18:58 +03:00
commit ee47354911
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -643,21 +643,15 @@ void wallets_manager::loop()
while (!m_stop_singal_sent)
{
{
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(); });
}
if (!m_stop_singal_sent)
{
update_state_info();
}
{
std::unique_lock<std::mutex> lk(m_stop_singal_sent_mutex);
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)