diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-09 22:44:39 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-09 22:55:25 +0100 |
commit | 7591c528d0be464a13dcd7f39dc9906a502fbfcc (patch) | |
tree | 7eb273f610f091089816a6a78b3343f51efca920 /src/p2p/net_node.h | |
parent | Merge pull request #2271 (diff) | |
download | monero-7591c528d0be464a13dcd7f39dc9906a502fbfcc.tar.xz |
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).
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<std::string> get_seed_nodes(bool testnet) const; + bool connect_to_seed(); template <class Container> bool connect_to_peerlist(const Container& peers); |