diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 10:59:27 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-12 11:22:42 +0100 |
commit | 08abb670e1d8c2d459dcd49ca02785a8cebc7b8b (patch) | |
tree | 7f78fda08350f88f9d56e90f6e7a7ab71807b7e9 /src/cryptonote_basic | |
parent | Merge pull request #2271 (diff) | |
download | monero-08abb670e1d8c2d459dcd49ca02785a8cebc7b8b.tar.xz |
protocol: fix reorgs while syncing
Diffstat (limited to 'src/cryptonote_basic')
-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 }; |