Merge da612cea03 into merged_master (Bitcoin PR bitcoin/bitcoin#30962)

This commit is contained in:
Tom Trevethan 2026-03-26 23:36:46 +00:00
commit 9d1caaea8e

View file

@ -2254,7 +2254,8 @@ void Chainstate::CheckForkWarningConditions()
// Before we get past initial download, we cannot reliably alert about forks
// (we assume we don't get stuck on a fork before finishing our initial sync)
if (m_chainman.IsInitialBlockDownload()) {
// Also not applicable to the background chainstate
if (m_chainman.IsInitialBlockDownload() || this->GetRole() == ChainstateRole::BACKGROUND) {
return;
}