Merge pull request #6119

6f45cfa5 p2p: zero last seen timestamp when inserting a new peer (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-01-16 17:29:26 -08:00
commit c6f4113265
No known key found for this signature in database
GPG Key ID: C64552D877C32479
1 changed files with 1 additions and 0 deletions

View File

@ -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);