mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 13:47:47 +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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue