diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-30 10:36:51 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-30 11:37:49 +0000 |
| commit | af2106122dffc1fb9ec2971c2b7348f58a4f2d60 (patch) | |
| tree | e4b91f6feea904a902b24f0a5ff6d3dd7236093b /src | |
| parent | 91001aa4460a59a42dc14a32c8e90717fd29dbd2 (diff) | |
| download | monzero-core-af2106122dffc1fb9ec2971c2b7348f58a4f2d60.tar.gz monzero-core-af2106122dffc1fb9ec2971c2b7348f58a4f2d60.tar.xz monzero-core-af2106122dffc1fb9ec2971c2b7348f58a4f2d60.zip | |
net_peerlist: move a couple functions from public to private
They do not take the object lock, and are meant to be used only
internally, called from a function which does take the lock.
Diffstat (limited to 'src')
| -rw-r--r-- | src/p2p/net_peerlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p2p/net_peerlist.h b/src/p2p/net_peerlist.h index 3d8b08ce6..03f508195 100644 --- a/src/p2p/net_peerlist.h +++ b/src/p2p/net_peerlist.h @@ -80,8 +80,6 @@ namespace nodetool bool set_peer_just_seen(peerid_type peer, const net_address& addr); bool set_peer_unreachable(const peerlist_entry& pr); bool is_ip_allowed(uint32_t ip); - void trim_white_peerlist(); - void trim_gray_peerlist(); private: @@ -166,6 +164,8 @@ namespace nodetool private: bool peers_indexed_from_old(const peers_indexed_old& pio, peers_indexed& pi); + void trim_white_peerlist(); + void trim_gray_peerlist(); friend class boost::serialization::access; epee::critical_section m_peerlist_lock; |
