diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-05 22:25:27 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-07 13:20:34 +0000 |
commit | 570dd3690e501b5c8a3ee8169456539d231b2536 (patch) | |
tree | 6b58dd79182f999408bae136a95f887e5348fdb5 /src/p2p/net_node.h | |
parent | Merge pull request #4879 (diff) | |
download | monero-570dd3690e501b5c8a3ee8169456539d231b2536.tar.xz |
p2p: use vector instead of list for peer lists
Diffstat (limited to '')
-rw-r--r-- | src/p2p/net_node.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 8930418bd..4db0a6cb7 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -197,12 +197,12 @@ namespace nodetool const boost::program_options::variables_map& vm ); bool idle_worker(); - bool handle_remote_peerlist(const std::list<peerlist_entry>& peerlist, time_t local_time, const epee::net_utils::connection_context_base& context); + bool handle_remote_peerlist(const std::vector<peerlist_entry>& peerlist, time_t local_time, const epee::net_utils::connection_context_base& context); bool get_local_node_data(basic_node_data& node_data); //bool get_local_handshake_data(handshake_data& hshd); - bool merge_peerlist_with_local(const std::list<peerlist_entry>& bs); - bool fix_time_delta(std::list<peerlist_entry>& local_peerlist, time_t local_time, int64_t& delta); + 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 connections_maker(); bool peer_sync_idle_maker(); |