diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-11 12:43:46 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-11 12:44:35 +0000 |
commit | 6f45cfa5c5798520249880d247ec81bfc2297dae (patch) | |
tree | 1f344d0bbf0a77d6ae8c32cdf6f18b4bc49ee856 /src/p2p/net_node.inl | |
parent | Merge pull request #6088 (diff) | |
download | monero-6f45cfa5c5798520249880d247ec81bfc2297dae.tar.xz |
p2p: zero last seen timestamp when inserting a new peer
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r-- | src/p2p/net_node.inl | 1 |
1 files changed, 1 insertions, 0 deletions
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<epee::net_utils::ipv4_network_address>().ip()) % (1ul << CRYPTONOTE_PRUNING_LOG_STRIPES), CRYPTONOTE_PRUNING_LOG_STRIPES); |