reduce some debugging in non-randomx code

This commit is contained in:
Duke Leto
2022-07-02 11:04:28 -04:00
parent 5a742dfc9d
commit d078eed3cf
2 changed files with 19 additions and 19 deletions

View File

@@ -2449,14 +2449,14 @@ static CBlockIndex *pindexBestForkBase = NULL;
void CheckForkWarningConditions()
{
fprintf(stderr,"%s checking for IBD\n", __func__);
//fprintf(stderr,"%s checking for IBD\n", __func__);
AssertLockHeld(cs_main);
// 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 (IsInitialBlockDownload())
return;
fprintf(stderr,"%s not in IBD\n", __func__);
//fprintf(stderr,"%s not in IBD\n", __func__);
// If our best fork is no longer within 288 blocks (+/- 12 hours if no one mines it)
// of our head, drop it
if (pindexBestForkTip && chainActive.Height() - pindexBestForkTip->GetHeight() >= 288)