diff options
author | Miguel Herranz <miguel@ipglider.org> | 2017-01-21 13:04:49 +0100 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2017-01-21 13:04:49 +0100 |
commit | 1c4d65c011e8619e083899c7a52a470b6b9e17f7 (patch) | |
tree | c572fd134369ee61a8a2f8ce1080eb0f074c0aa2 /src | |
parent | Fix logging that broke after rebasing (diff) | |
download | monero-1c4d65c011e8619e083899c7a52a470b6b9e17f7.tar.xz |
Rename method to get_random_gray_peer
Diffstat (limited to 'src')
-rw-r--r-- | src/p2p/net_node.inl | 2 | ||||
-rw-r--r-- | src/p2p/net_peerlist.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index ebe1ba5a2..99ce94eb4 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1755,7 +1755,7 @@ namespace nodetool { 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; } diff --git a/src/p2p/net_peerlist.h b/src/p2p/net_peerlist.h index c230c8c71..4797eb82b 100644 --- a/src/p2p/net_peerlist.h +++ b/src/p2p/net_peerlist.h @@ -81,7 +81,7 @@ 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); - 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); @@ -399,7 +399,7 @@ namespace nodetool } //-------------------------------------------------------------------------------------------------- inline - bool peerlist_manager::get_gray_peer_random(peerlist_entry& pe) + bool peerlist_manager::get_random_gray_peer(peerlist_entry& pe) { TRY_ENTRY(); @@ -419,7 +419,7 @@ namespace nodetool return true; - CATCH_ENTRY_L0("peerlist_manager::get_gray_peer_random()", false); + CATCH_ENTRY_L0("peerlist_manager::get_random_gray_peer()", false); return true; } //-------------------------------------------------------------------------------------------------- |