aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-02-16 14:23:22 +0100
committerRiccardo Spagni <ric@spagni.net>2018-02-16 14:23:22 +0100
commita54247b993999fbffb9a666533d83aeaf177a56f (patch)
tree4ba7fb747e1a46954ae1fa13bc2a191b6c8ac23d /src/p2p/net_node.inl
parentMerge pull request #3217 (diff)
parentp2p: do not try to connect to peers in offline mode (diff)
downloadmonero-a54247b993999fbffb9a666533d83aeaf177a56f.tar.xz
Merge pull request #3221
2e584dcb p2p: do not try to connect to peers in offline mode (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r--src/p2p/net_node.inl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 3445674f6..ee7e62768 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -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);