aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-01-16 17:29:26 -0800
committerAlexander Blair <snipa@jagtech.io>2020-01-16 17:29:27 -0800
commitc6f411326589e97bb17f42e1140ee70599a95d4d (patch)
tree2cba743705c4b7d503debc968ced0d835c3413fa /src/p2p
parentMerge pull request #6115 (diff)
parentp2p: zero last seen timestamp when inserting a new peer (diff)
downloadmonero-c6f411326589e97bb17f42e1140ee70599a95d4d.tar.xz
Merge pull request #6119
6f45cfa5 p2p: zero last seen timestamp when inserting a new peer (moneromooo-monero)
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.inl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 45bb10593..82abee71b 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<epee::net_utils::ipv4_network_address>().ip()) % (1ul << CRYPTONOTE_PRUNING_LOG_STRIPES), CRYPTONOTE_PRUNING_LOG_STRIPES);