Merge pull request #7269

1128146c4 blockchain: lock access to m_blocks_hash_of_hashes (moneromooo-monero)
remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
Alexander Blair 3 years ago
commit f3de67bc21
No known key found for this signature in database
GPG Key ID: C64552D877C32479

@ -4749,6 +4749,8 @@ uint64_t Blockchain::prevalidate_block_hashes(uint64_t height, const std::vector
CHECK_AND_ASSERT_MES(weights.empty() || weights.size() == hashes.size(), 0, "Unexpected weights size");
CRITICAL_REGION_LOCAL(m_blockchain_lock);
// easy case: height >= hashes
if (height >= m_blocks_hash_of_hashes.size() * HASH_OF_HASHES_STEP)
return hashes.size();

Loading…
Cancel
Save