|
Monero
|
#include <bootstrap_node_selector.h>


Classes | |
| struct | node |
| struct | by_address |
| struct | by_fails |
Public Member Functions | |
| selector_auto (std::function< std::map< std::string, bool >()> get_nodes, size_t max_nodes=1000) | |
| void | handle_result (const std::string &address, bool success) final |
| boost::optional< node_info > | next_node () final |
| Public Member Functions inherited from cryptonote::bootstrap_node::selector | |
| virtual | ~selector ()=default |
Private Types | |
| typedef boost::multi_index_container< node, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::tag< by_address >, boost::multi_index::member< node, std::string, &node::address > >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< by_fails >, boost::multi_index::member< node, size_t, &node::fails > > > > | nodes_list |
Private Member Functions | |
| bool | has_at_least_one_good_node () const |
| void | append_new_nodes () |
| void | truncate () |
Private Attributes | |
| const std::function< std::map< std::string, bool >()> | m_get_nodes |
| const size_t | m_max_nodes |
| nodes_list | m_nodes |
|
private |
|
inline |
|
private |
|
finalvirtual |
Implements cryptonote::bootstrap_node::selector.
|
private |
|
finalvirtual |
Implements cryptonote::bootstrap_node::selector.
|
private |
|
private |
|
private |
|
private |