aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-19 12:56:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-19 12:56:31 -0500
commitcb130c759059e670fd30a10a436fb286fd556da4 (patch)
tree0bedd1afc2b5a490b2a1640a3ca5a5b5d1898577 /src/p2p/net_node.h
parentMerge pull request #3852 (diff)
parentp2p: warn when no incoming connections are seen for a while (diff)
downloadmonero-cb130c759059e670fd30a10a436fb286fd556da4.tar.xz
Merge pull request #3861
de1ffe0 p2p: warn when no incoming connections are seen for a while (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r--src/p2p/net_node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index d5346afb5..90e2f78b1 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -244,6 +244,7 @@ namespace nodetool
bool check_connection_and_handshake_with_peer(const epee::net_utils::network_address& na, uint64_t last_seen_stamp);
bool gray_peerlist_housekeeping();
+ bool check_incoming_connections();
void kill() { ///< will be called e.g. from deinit()
_info("Killing the net_node");
@@ -307,6 +308,7 @@ namespace nodetool
epee::math_helper::once_a_time_seconds<1> m_connections_maker_interval;
epee::math_helper::once_a_time_seconds<60*30, false> m_peerlist_store_interval;
epee::math_helper::once_a_time_seconds<60> m_gray_peerlist_housekeeping_interval;
+ epee::math_helper::once_a_time_seconds<900, false> m_incoming_connections_interval;
std::string m_bind_ip;
std::string m_port;