Merge 5c0cd205a1 into merged_master (Bitcoin PR bitcoin/bitcoin#29625)

This commit is contained in:
ivanlele 2026-03-03 15:43:14 +00:00
parent e35c518374
commit 8d69f4b94d
No known key found for this signature in database
44 changed files with 742 additions and 567 deletions

View file

@ -5807,7 +5807,7 @@ bool ChainstateManager::ShouldCheckBlockIndex() const
{
// Assert to verify Flatten() has been called.
if (!*Assert(m_options.check_block_index)) return false;
if (GetRand(*m_options.check_block_index) >= 1) return false;
if (FastRandomContext().randrange(*m_options.check_block_index) >= 1) return false;
return true;
}