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).
This commit is contained in:
moneromooo-monero
2017-08-09 22:44:39 +01:00
parent 181a008aa3
commit 7591c528d0
2 changed files with 26 additions and 6 deletions
+1
View File
@@ -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<std::string> get_seed_nodes(bool testnet) const;
bool connect_to_seed();
template <class Container>
bool connect_to_peerlist(const Container& peers);