Enable -alertnotify for hard fork detection. Test it.

This commit is contained in:
Taylor Hornby
2016-06-09 13:48:04 -06:00
parent b3418be123
commit 57c074e1e4
3 changed files with 72 additions and 1 deletions

View File

@@ -1454,7 +1454,9 @@ 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__);
std::string warning = std::string("Warning: Found invalid chain at least ~6 blocks longer than our best chain.\nChain state database corruption likely.");
LogPrintf("%s: %s\n", warning.c_str(), __func__);
CAlert::Notify(warning, true);
fLargeWorkInvalidChainFound = true;
}
}