diff options
author | Miguel Herranz <miguel@ipglider.org> | 2017-01-21 10:11:32 +0100 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2017-01-21 10:11:32 +0100 |
commit | 6bdd3a59b57a9194e15bb0dc8ce33e62e93cad95 (patch) | |
tree | 567348ec1d27065003f397b9ef45c66fcedff8e9 | |
parent | Add gray peer list housekeeping system (diff) | |
download | monero-6bdd3a59b57a9194e15bb0dc8ce33e62e93cad95.tar.xz |
Use set_peer_just_seen to keep last_seen updated
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 3933fe65b..5a20781ed 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1769,7 +1769,7 @@ namespace nodetool return true; } - m_peerlist.append_with_peer_white(pe); + m_peerlist.set_peer_just_seen(pe.id, pe.adr); LOG_PRINT_L2("PEER PROMOTED TO WHITE PEER LIST IP address: " << epee::string_tools::get_ip_string_from_int32(pe.adr.ip) << " Peer ID: " << std::hex << pe.id); |