Merge pull request #2428

054054c9 p2p: disable gray list housekeeping when an exclusive node is given (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-09-25 16:46:26 +02:00
commit 174f2fb4da
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -1916,6 +1916,8 @@ namespace nodetool
template<class t_payload_net_handler> template<class t_payload_net_handler>
bool node_server<t_payload_net_handler>::gray_peerlist_housekeeping() bool node_server<t_payload_net_handler>::gray_peerlist_housekeeping()
{ {
if (!m_exclusive_peers.empty()) return true;
peerlist_entry pe = AUTO_VAL_INIT(pe); peerlist_entry pe = AUTO_VAL_INIT(pe);
if (m_net_server.is_stop_signal_sent()) if (m_net_server.is_stop_signal_sent())