diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-18 22:11:18 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-08-21 15:54:27 +0000 |
commit | e353e3d7571f14c147d160f9e0e1bc3ab8833ffc (patch) | |
tree | 4fb36e297d2e3a225c1755eea2b31493e1e09127 /src/p2p/net_node.h | |
parent | Merge pull request #5696 (diff) | |
download | monero-e353e3d7571f14c147d160f9e0e1bc3ab8833ffc.tar.xz |
p2p: sanitize peer lists
Also remove the delta time fixup, since we now ignore those
as they're attacker controlled
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<peerlist_entry>& bs); - bool fix_time_delta(std::vector<peerlist_entry>& local_peerlist, time_t local_time, int64_t& delta); + bool sanitize_peerlist(std::vector<peerlist_entry>& local_peerlist); bool connections_maker(); bool peer_sync_idle_maker(); |