mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Rename method to get_random_gray_peer
This commit is contained in:
parent
03a54ee0c9
commit
1c4d65c011
2 changed files with 4 additions and 4 deletions
|
@ -1755,7 +1755,7 @@ namespace nodetool
|
||||||
{
|
{
|
||||||
peerlist_entry pe = AUTO_VAL_INIT(pe);
|
peerlist_entry pe = AUTO_VAL_INIT(pe);
|
||||||
|
|
||||||
if (!m_peerlist.get_gray_peer_random(pe)) {
|
if (!m_peerlist.get_random_gray_peer(pe)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ namespace nodetool
|
||||||
bool set_peer_just_seen(peerid_type peer, const net_address& addr);
|
bool set_peer_just_seen(peerid_type peer, const net_address& addr);
|
||||||
bool set_peer_unreachable(const peerlist_entry& pr);
|
bool set_peer_unreachable(const peerlist_entry& pr);
|
||||||
bool is_ip_allowed(uint32_t ip);
|
bool is_ip_allowed(uint32_t ip);
|
||||||
bool get_gray_peer_random(peerlist_entry& pe);
|
bool get_random_gray_peer(peerlist_entry& pe);
|
||||||
bool remove_from_peer_gray(const peerlist_entry& pe);
|
bool remove_from_peer_gray(const peerlist_entry& pe);
|
||||||
|
|
||||||
|
|
||||||
|
@ -399,7 +399,7 @@ namespace nodetool
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
inline
|
inline
|
||||||
bool peerlist_manager::get_gray_peer_random(peerlist_entry& pe)
|
bool peerlist_manager::get_random_gray_peer(peerlist_entry& pe)
|
||||||
{
|
{
|
||||||
TRY_ENTRY();
|
TRY_ENTRY();
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@ namespace nodetool
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
CATCH_ENTRY_L0("peerlist_manager::get_gray_peer_random()", false);
|
CATCH_ENTRY_L0("peerlist_manager::get_random_gray_peer()", false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue