diff options
Diffstat (limited to 'src/cryptonote_basic')
| -rw-r--r-- | src/cryptonote_basic/connection_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/connection_context.cpp b/src/cryptonote_basic/connection_context.cpp index 642749f3c..69d66c66d 100644 --- a/src/cryptonote_basic/connection_context.cpp +++ b/src/cryptonote_basic/connection_context.cpp @@ -85,7 +85,7 @@ namespace cryptonote boost::optional<crypto::hash> cryptonote_connection_context::get_expected_hash(const uint64_t height) const { const auto difference = height - m_expected_heights_start; - if (height < m_expected_heights_start || m_expected_heights.size() < difference) + if (height < m_expected_heights_start || m_expected_heights.size() <= difference) return boost::none; return m_expected_heights[difference]; } |
