diff options
| author | tobtoht <tob@featherwallet.org> | 2025-03-24 13:58:34 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-03-24 13:58:34 +0000 |
| commit | c3dce57a538a248adcd8edd3d02681b21a12f577 (patch) | |
| tree | d4a93c2be5c126ab6d4d43a4afe687607f0a448d /src/cryptonote_basic | |
| parent | 4b7263d5879c6f8da4f4466829cdf640e57de4c1 (diff) | |
| parent | c8f7735014d6a93740fd0539701eb3406859a014 (diff) | |
| download | monzero-core-c3dce57a538a248adcd8edd3d02681b21a12f577.tar.gz monzero-core-c3dce57a538a248adcd8edd3d02681b21a12f577.tar.xz monzero-core-c3dce57a538a248adcd8edd3d02681b21a12f577.zip | |
Merge pull request #9862
c8f773501 Fix expected hash check (Lee *!* Clagett)
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]; } |
