net_peerlist: fix grayt/white naming mismatch

Looking at how these are called confirms this must have been a mistake
This commit is contained in:
moneromooo-monero 2015-05-28 14:06:19 +01:00
parent 8069b3ba7f
commit 39a9508a20
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -204,7 +204,7 @@ namespace nodetool
return true; return true;
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
inline void peerlist_manager::trim_white_peerlist() inline void peerlist_manager::trim_gray_peerlist()
{ {
while(m_peers_gray.size() > P2P_LOCAL_GRAY_PEERLIST_LIMIT) while(m_peers_gray.size() > P2P_LOCAL_GRAY_PEERLIST_LIMIT)
{ {
@ -213,7 +213,7 @@ namespace nodetool
} }
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
inline void peerlist_manager::trim_gray_peerlist() inline void peerlist_manager::trim_white_peerlist()
{ {
while(m_peers_white.size() > P2P_LOCAL_WHITE_PEERLIST_LIMIT) while(m_peers_white.size() > P2P_LOCAL_WHITE_PEERLIST_LIMIT)
{ {