32 #include <unordered_set> 35 #include <boost/date_time/posix_time/posix_time.hpp> 36 #include "net/net_utils_base.h" 37 #include "copyable_atomic.h" 89 return "before_handshake";
91 return "synchronizing";
Definition: connection_context.h:54
boost::posix_time::ptime m_last_request_time
Definition: connection_context.h:69
crypto::hash m_last_known_hash
Definition: connection_context.h:71
int32_t m_score
Definition: connection_context.h:76
epee::copyable_atomic m_callback_request_count
Definition: connection_context.h:70
uint32_t m_pruning_seed
Definition: connection_context.h:72
Definition: unordered_containers_boost_serialization.h:37
uint32_t m_rpc_credits_per_hash
Definition: connection_context.h:74
Definition: connection_context.h:52
char get_protocol_state_char(cryptonote_connection_context::state s)
Definition: connection_context.h:103
std::unordered_set< crypto::hash > m_requested_objects
Definition: connection_context.h:66
bool handshake_complete() const noexcept
Definition: connection_context.h:59
crypto namespace.
Definition: crypto.cpp:60
Definition: connection_context.h:42
std::vector< std::pair< crypto::hash, uint64_t > > m_needed_objects
Definition: connection_context.h:65
const
Definition: build_protob.py:9
cryptonote_connection_context()
Definition: connection_context.h:44
epee::copyable_atomic m_new_stripe_notification
Definition: connection_context.h:80
uint64_t m_remote_blockchain_height
Definition: connection_context.h:67
state
Definition: connection_context.h:49
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:44
Definition: connection_context.h:51
static constexpr crypto::hash null_hash
Definition: hash.h:92
#define false
Definition: stdbool.h:37
uint64_t m_expect_height
Definition: connection_context.h:78
size_t m_num_requested
Definition: connection_context.h:79
std::string get_protocol_state_string(cryptonote_connection_context::state s)
Definition: connection_context.h:84
Definition: blake256.h:36
bool m_anchor
Definition: connection_context.h:75
Definition: connection_context.h:55
POD_CLASS hash
Definition: hash.h:48
state m_state
Definition: connection_context.h:64
uint16_t m_rpc_port
Definition: connection_context.h:73
Definition: connection_context.h:53
epee::copyable_atomic m_idle_peer_notification
Definition: connection_context.h:81
#define s(x, c)
Definition: aesb.c:47
static constexpr int handshake_command() noexcept
Definition: connection_context.h:58
static size_t get_max_bytes(int command) noexcept
Definition: connection_context.cpp:36
uint64_t m_last_response_height
Definition: connection_context.h:68
int m_expect_response
Definition: connection_context.h:77