mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Provide correct warning in CheckForkWarningConditions for large worked invalid chain. (#1234)
This commit is contained in:
parent
275b95cb8e
commit
7815f6e32e
@ -1857,7 +1857,10 @@ void CheckForkWarningConditions()
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrintf("%s: Warning: Found invalid chain at least ~6 blocks longer than our best chain.\nChain state database corruption likely.\n", __func__);
|
||||
if(pindexBestInvalid->nHeight > chainActive.Height() + 6)
|
||||
LogPrintf("%s: Warning: Found invalid chain at least ~6 blocks longer than our best chain.\nChain state database corruption likely.\n", __func__);
|
||||
else
|
||||
LogPrintf("%s: Warning: Found invalid chain which has higher work (at least ~6 blocks worth of work) than our best chain.\nChain state database corruption likely.\n", __func__);
|
||||
fLargeWorkInvalidChainFound = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user