From 6bdd3a59b57a9194e15bb0dc8ce33e62e93cad95 Mon Sep 17 00:00:00 2001 From: Miguel Herranz Date: Sat, 21 Jan 2017 10:11:32 +0100 Subject: [PATCH] Use set_peer_just_seen to keep last_seen updated --- src/p2p/net_node.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);