From e353e3d7571f14c147d160f9e0e1bc3ab8833ffc Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 18 Jun 2019 22:11:18 +0000 Subject: p2p: sanitize peer lists Also remove the delta time fixup, since we now ignore those as they're attacker controlled --- src/p2p/net_node.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/p2p/net_node.h') diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 6d2ae878f..340ed8f90 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -349,8 +349,7 @@ namespace nodetool bool get_local_node_data(basic_node_data& node_data, const network_zone& zone); //bool get_local_handshake_data(handshake_data& hshd); - bool merge_peerlist_with_local(const std::vector& bs); - bool fix_time_delta(std::vector& local_peerlist, time_t local_time, int64_t& delta); + bool sanitize_peerlist(std::vector& local_peerlist); bool connections_maker(); bool peer_sync_idle_maker(); -- cgit v1.2.3