mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Merge bitcoin/bitcoin#30962: validation: Disable CheckForkWarningConditions for background chainstate
c0a0c72b4d
validation: Disable CheckForkWarningConditions for background chainstate (Martin Zumsande) Pull request description: The comparison of `m_best_invalid` with the tip of the chainstate makes no sense for the background chainstate and can lead to incorrect log messages. Fixes #30958 ACKs for top commit: fjahr: utACKc0a0c72b4d
achow101: ACKc0a0c72b4d
TheCharlatan: ACKc0a0c72b4d
tdb3: CR ACKc0a0c72b4d
Tree-SHA512: 316811b1ade8521681f3a105c7db59dfdb27b1e13efeba95cd6183d750db2e07f48968e8fc54fe3834d3311519cf8c6b77d7e0fd61facbf2b07598e79110ff85
This commit is contained in:
commit
da612cea03
1 changed files with 2 additions and 1 deletions
|
@ -2020,7 +2020,8 @@ void Chainstate::CheckForkWarningConditions()
|
||||||
|
|
||||||
// Before we get past initial download, we cannot reliably alert about forks
|
// 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)
|
// (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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue