Follow-up to #25717. The commit “Utilize anti-DoS headers download strategy” changed how this bool variable is computed, so that its value is now the opposite of what it should be.
Prior to #25717:
0bool received_new_header{WITH_LOCK(::cs_main, return m_chainman.m_blockman.LookupBlockIndex(headers.back().GetHash()) == nullptr)};
After #25717 (simplified):
0{
1 LOCK(cs_main);
2 last_received_header = m_chainman.m_blockman.LookupBlockIndex(headers.back().GetHash());
3}
4bool received_new_header{last_received_header != nullptr};