diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-17 17:56:04 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-17 17:56:04 +0200 |
commit | 848591c4d85ae73c42b3317d9dab192267bc2737 (patch) | |
tree | 49609ee8a89b8e475ba610c6af08507aea9ac9bb /src/cryptonote_basic/connection_context.h | |
parent | Merge pull request #5185 (diff) | |
parent | daemon: add --public-node mode, RPC port propagation over P2P (diff) | |
download | monero-848591c4d85ae73c42b3317d9dab192267bc2737.tar.xz |
Merge pull request #5190
551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
Diffstat (limited to 'src/cryptonote_basic/connection_context.h')
-rw-r--r-- | src/cryptonote_basic/connection_context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h index b2eeb23b3..96398a90b 100644 --- a/src/cryptonote_basic/connection_context.h +++ b/src/cryptonote_basic/connection_context.h @@ -40,7 +40,8 @@ namespace cryptonote struct cryptonote_connection_context: public epee::net_utils::connection_context_base { cryptonote_connection_context(): m_state(state_before_handshake), m_remote_blockchain_height(0), m_last_response_height(0), - m_last_request_time(boost::date_time::not_a_date_time), m_callback_request_count(0), m_last_known_hash(crypto::null_hash), m_pruning_seed(0), m_anchor(false) {} + m_last_request_time(boost::date_time::not_a_date_time), m_callback_request_count(0), + m_last_known_hash(crypto::null_hash), m_pruning_seed(0), m_rpc_port(0), m_anchor(false) {} enum state { @@ -60,6 +61,7 @@ namespace cryptonote epee::copyable_atomic m_callback_request_count; //in debug purpose: problem with double callback rise crypto::hash m_last_known_hash; uint32_t m_pruning_seed; + uint16_t m_rpc_port; bool m_anchor; //size_t m_score; TODO: add score calculations }; |