From 6f45cfa5c5798520249880d247ec81bfc2297dae Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 11 Nov 2019 12:43:46 +0000 Subject: [PATCH] p2p: zero last seen timestamp when inserting a new peer --- src/p2p/net_node.inl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index f8094bfa8..117468f9b 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1882,6 +1882,7 @@ namespace nodetool --i; continue; } + local_peerlist[i].last_seen = 0; #ifdef CRYPTONOTE_PRUNING_DEBUG_SPOOF_SEED be.pruning_seed = tools::make_pruning_seed(1 + (be.adr.as().ip()) % (1ul << CRYPTONOTE_PRUNING_LOG_STRIPES), CRYPTONOTE_PRUNING_LOG_STRIPES);