diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-03-18 20:27:00 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-03-18 20:27:00 +0200 |
commit | 585445d0bca32f6abd39e7d2128f6cf416d4dc53 (patch) | |
tree | 9f41bd6e172e53421b91a687a7b4b5c4635b2d9e /src/p2p/net_node.h | |
parent | Merge pull request #1875 (diff) | |
parent | p2p: use the fallback seed IPs when not enough seeds are found (diff) | |
download | monero-585445d0bca32f6abd39e7d2128f6cf416d4dc53.tar.xz |
Merge pull request #1879
c1c9eeaa p2p: use the fallback seed IPs when not enough seeds are found (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index de0cf2c03..4582a3236 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -191,7 +191,6 @@ namespace nodetool bool parse_peer_from_string(nodetool::net_address& pe, const std::string& node_addr); bool handle_command_line( const boost::program_options::variables_map& vm - , bool testnet ); bool idle_worker(); bool handle_remote_peerlist(const std::list<peerlist_entry>& peerlist, time_t local_time, const epee::net_utils::connection_context_base& context); @@ -218,6 +217,7 @@ namespace nodetool void cache_connect_fail_info(const net_address& addr); bool is_addr_recently_failed(const net_address& addr); bool is_priority_node(const net_address& na); + std::set<std::string> get_seed_nodes(bool testnet) const; template <class Container> bool connect_to_peerlist(const Container& peers); @@ -321,6 +321,8 @@ namespace nodetool epee::critical_section m_ip_fails_score_lock; std::map<uint32_t, uint64_t> m_ip_fails_score; + + bool m_testnet; }; } |