From 7591c528d0be464a13dcd7f39dc9906a502fbfcc Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 9 Aug 2017 22:44:39 +0100 Subject: p2p: fallback on seed nodes if we can't make a connection This avoids failing to connect to the network in case all known peers are unavailable (which can happen if the peer list is small). --- src/p2p/net_node.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/p2p/net_node.h') diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 4e1e60d27..22ae5ec26 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -226,6 +226,7 @@ namespace nodetool bool is_addr_recently_failed(const epee::net_utils::network_address& addr); bool is_priority_node(const epee::net_utils::network_address& na); std::set get_seed_nodes(bool testnet) const; + bool connect_to_seed(); template bool connect_to_peerlist(const Container& peers); -- cgit v1.2.3