mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
p2p: zero last seen timestamp when inserting a new peer
This commit is contained in:
parent
a48ef0a65a
commit
6f45cfa5c5
1 changed files with 1 additions and 0 deletions
|
@ -1882,6 +1882,7 @@ namespace nodetool
|
||||||
--i;
|
--i;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
local_peerlist[i].last_seen = 0;
|
||||||
|
|
||||||
#ifdef CRYPTONOTE_PRUNING_DEBUG_SPOOF_SEED
|
#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);
|
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);
|
||||||
|
|
Loading…
Reference in a new issue