File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -5215,7 +5215,7 @@ bool ChainstateManager::ShouldCheckBlockIndex() const
5215
5215
{
5216
5216
// Assert to verify Flatten() has been called.
5217
5217
if (!*Assert (m_options.check_block_index )) return false ;
5218
- if (GetRand (*m_options.check_block_index ) >= 1 ) return false ;
5218
+ if (FastRandomContext (). randrange (*m_options.check_block_index ) >= 1 ) return false ;
5219
5219
return true ;
5220
5220
}
5221
5221
@@ -5250,8 +5250,6 @@ void ChainstateManager::CheckBlockIndex()
5250
5250
if (!best_hdr_chain.Contains (&block_index)) {
5251
5251
// Only genesis, which must be part of the best header chain, can have a nullptr parent.
5252
5252
assert (block_index.pprev );
5253
- forward.emplace (block_index.pprev , &block_index);
5254
- forward.emplace (block_index.pprev , &block_index);
5255
5253
forward.emplace (block_index.pprev , &block_index);
5256
5254
}
5257
5255
}
You can’t perform that action at this time.
0 commit comments