|
| | t_cryptonote_protocol_handler (t_core &rcore, nodetool::i_p2p_endpoint< connection_context > *p_net_layout, bool offline=false) |
| |
| bool | on_idle () |
| |
| bool | init (const boost::program_options::variables_map &vm) |
| |
| bool | deinit () |
| |
| void | set_p2p_endpoint (nodetool::i_p2p_endpoint< connection_context > *p2p) |
| |
| bool | process_payload_sync_data (const CORE_SYNC_DATA &hshd, cryptonote_connection_context &context, bool is_inital) |
| |
| bool | get_payload_sync_data (epee::byte_slice &data) |
| |
| bool | get_payload_sync_data (CORE_SYNC_DATA &hshd) |
| |
| bool | on_callback (cryptonote_connection_context &context) |
| |
| t_core & | get_core () |
| |
| virtual bool | is_synchronized () const final |
| |
| void | log_connections () |
| |
| std::list< connection_info > | get_connections () |
| |
| const block_queue & | get_block_queue () const |
| |
| void | stop () |
| |
| void | on_connection_close (cryptonote_connection_context &context) |
| |
| void | set_max_out_peers (epee::net_utils::zone zone, unsigned int max) |
| |
| unsigned int | get_max_out_peers (epee::net_utils::zone zone) const |
| |
| bool | no_sync () const |
| |
| void | set_no_sync (bool value) |
| |
| std::string | get_peers_overview () const |
| |
| std::pair< uint32_t, uint32_t > | get_next_needed_pruning_stripe () const |
| |
| bool | needs_new_sync_connections (epee::net_utils::zone zone) const |
| |
| bool | is_busy_syncing () |
| |
| virtual bool | is_synchronized () const =0 |
| |
| virtual bool | relay_block (NOTIFY_NEW_BLOCK::request &arg, cryptonote_connection_context &exclude_context)=0 |
| |
| virtual bool | relay_transactions (NOTIFY_NEW_TRANSACTIONS::request &arg, const boost::uuids::uuid &source, epee::net_utils::zone zone, relay_method tx_relay)=0 |
| |
|
| int | handle_notify_new_block (int command, NOTIFY_NEW_BLOCK::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_notify_new_transactions (int command, NOTIFY_NEW_TRANSACTIONS::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_request_get_objects (int command, NOTIFY_REQUEST_GET_OBJECTS::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_response_get_objects (int command, NOTIFY_RESPONSE_GET_OBJECTS::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_request_chain (int command, NOTIFY_REQUEST_CHAIN::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_response_chain_entry (int command, NOTIFY_RESPONSE_CHAIN_ENTRY::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_notify_new_fluffy_block (int command, NOTIFY_NEW_FLUFFY_BLOCK::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_request_fluffy_missing_tx (int command, NOTIFY_REQUEST_FLUFFY_MISSING_TX::request &arg, cryptonote_connection_context &context) |
| |
| int | handle_notify_get_txpool_complement (int command, NOTIFY_GET_TXPOOL_COMPLEMENT::request &arg, cryptonote_connection_context &context) |
| |
| virtual bool | relay_block (NOTIFY_NEW_BLOCK::request &arg, cryptonote_connection_context &exclude_context) |
| |
| virtual bool | relay_transactions (NOTIFY_NEW_TRANSACTIONS::request &arg, const boost::uuids::uuid &source, epee::net_utils::zone zone, relay_method tx_relay) |
| |
| bool | should_drop_connection (cryptonote_connection_context &context, uint32_t next_stripe) |
| |
| bool | request_missing_objects (cryptonote_connection_context &context, bool check_having_blocks, bool force_next_span=false) |
| |
| size_t | get_synchronizing_connections_count () |
| |
| bool | on_connection_synchronized () |
| |
| bool | should_download_next_span (cryptonote_connection_context &context, bool standby) |
| |
| bool | should_ask_for_pruned_data (cryptonote_connection_context &context, uint64_t first_block_height, uint64_t nblocks, bool check_block_weights) const |
| |
| void | drop_connection (cryptonote_connection_context &context, bool add_fail, bool flush_all_spans) |
| |
| void | drop_connection_with_score (cryptonote_connection_context &context, unsigned int score, bool flush_all_spans) |
| |
| void | drop_connections (const epee::net_utils::network_address address) |
| |
| bool | kick_idle_peers () |
| |
| bool | check_standby_peers () |
| |
| bool | update_sync_search () |
| |
| int | try_add_next_blocks (cryptonote_connection_context &context) |
| |
| void | notify_new_stripe (cryptonote_connection_context &context, uint32_t stripe) |
| |
| size_t | skip_unneeded_hashes (cryptonote_connection_context &context, bool check_block_queue) const |
| |
| bool | request_txpool_complement (cryptonote_connection_context &context) |
| |
| void | hit_score (cryptonote_connection_context &context, int32_t score) |
| |
| uint64_t | get_estimated_remaining_sync_seconds (uint64_t current_blockchain_height, uint64_t target_blockchain_height) |
| |
| std::string | get_periodic_sync_estimate (uint64_t current_blockchain_height, uint64_t target_blockchain_height) |
| |
| double | get_avg_block_size () |
| |
| template<class t_parameter > |
| bool | post_notify (typename t_parameter::request &arg, cryptonote_connection_context &context) |
| |
Private Member Functions inherited from cryptonote::cryptonote_protocol_handler_base |
| | cryptonote_protocol_handler_base () |
| |
| virtual | ~cryptonote_protocol_handler_base () |
| |
| void | handler_request_blocks_history (std::list< crypto::hash > &ids) |
| |
| void | handler_response_blocks_now (size_t packet_size) |
| |
| virtual double | get_avg_block_size ()=0 |
| |
| virtual double | estimate_one_block_size () noexcept |
| |