mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 05:38:55 +00:00
Merge pull request #3221
2e584dcb
p2p: do not try to connect to peers in offline mode (moneromooo-monero)
This commit is contained in:
commit
a54247b993
@ -1164,6 +1164,7 @@ namespace nodetool
|
||||
template<class t_payload_net_handler>
|
||||
bool node_server<t_payload_net_handler>::connections_maker()
|
||||
{
|
||||
if (m_offline) return true;
|
||||
if (!connect_to_peerlist(m_exclusive_peers)) return false;
|
||||
|
||||
if (!m_exclusive_peers.empty()) return true;
|
||||
@ -1935,6 +1936,7 @@ namespace nodetool
|
||||
template<class t_payload_net_handler>
|
||||
bool node_server<t_payload_net_handler>::gray_peerlist_housekeeping()
|
||||
{
|
||||
if (m_offline) return true;
|
||||
if (!m_exclusive_peers.empty()) return true;
|
||||
|
||||
peerlist_entry pe = AUTO_VAL_INIT(pe);
|
||||
|
Loading…
Reference in New Issue
Block a user