protocol: drop peers that don't reply to queries

This commit is contained in:
moneromooo
2020-12-03 13:22:52 +00:00
committed by moneromooo-monero
parent 89e984d93b
commit ff7fdf6db2
4 changed files with 43 additions and 19 deletions

View File

@@ -161,7 +161,7 @@ namespace cryptonote
std::atomic<bool> m_ask_for_txpool_complement;
boost::mutex m_sync_lock;
block_queue m_block_queue;
epee::math_helper::once_a_time_seconds<30> m_idle_peer_kicker;
epee::math_helper::once_a_time_seconds<8> m_idle_peer_kicker;
epee::math_helper::once_a_time_milliseconds<100> m_standby_checker;
epee::math_helper::once_a_time_seconds<101> m_sync_search_checker;
epee::math_helper::once_a_time_seconds<43> m_bad_peer_checker;