diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-08-13 15:59:30 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-08-13 15:59:30 +0200 |
| commit | 70495665f95cd453f2fc89d2ec5f7c2643e79f14 (patch) | |
| tree | 653a9b70c681221108414a0a9243eab8b19f204f /src/cryptonote_basic/connection_context.h | |
| parent | 181a008aa35f130e046ec906cbb1b2436a381a62 (diff) | |
| parent | 2ec15a693165db96dd7e75ee060ea4622a47ab7a (diff) | |
| download | monzero-core-70495665f95cd453f2fc89d2ec5f7c2643e79f14.tar.gz monzero-core-70495665f95cd453f2fc89d2ec5f7c2643e79f14.tar.xz monzero-core-70495665f95cd453f2fc89d2ec5f7c2643e79f14.zip | |
Merge pull request #2284
2ec15a69 daemon: print peers' top height in sync_info (moneromooo-monero)
08abb670 protocol: fix reorgs while syncing (moneromooo-monero)
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 ff56b73d7..06f66120b 100644 --- a/src/cryptonote_basic/connection_context.h +++ b/src/cryptonote_basic/connection_context.h @@ -39,7 +39,8 @@ namespace cryptonote struct cryptonote_connection_context: public epee::net_utils::connection_context_base { - cryptonote_connection_context(): m_state(state_befor_handshake), m_remote_blockchain_height(0), m_last_response_height(0) {} + cryptonote_connection_context(): m_state(state_befor_handshake), m_remote_blockchain_height(0), m_last_response_height(0), + m_last_known_hash(cryptonote::null_hash) {} enum state { @@ -56,6 +57,7 @@ namespace cryptonote uint64_t m_last_response_height; boost::posix_time::ptime m_last_request_time; epee::copyable_atomic m_callback_request_count; //in debug purpose: problem with double callback rise + crypto::hash m_last_known_hash; //size_t m_score; TODO: add score calculations }; |
