mirror of
https://github.com/monero-project/monero.git
synced 2025-04-11 08:42:03 +00:00
Merge pull request #9862
c8f773501
Fix expected hash check (Lee *!* Clagett)
This commit is contained in:
commit
c3dce57a53
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue