don't display warnings about lack of blocks per 4 hour window

This commit is contained in:
nzsquirrell
2016-03-02 19:40:37 +13:00
parent 67a6bdb11c
commit a195a5266c
+4 -1
View File
@@ -1818,6 +1818,9 @@ void PartitionCheck(bool (*initialDownloadCheck)(), CCriticalSection& cs, const
LogPrint("partitioncheck", "%s : likelihood: %g\n", __func__, p);
// Aim for one false-positive about every fifty years of normal running:
/*
// disable these warnings for myriad as they pretty much always come up.
const int FIFTY_YEARS = 50*365*24*60*60;
double alertThreshold = 1.0 / (FIFTY_YEARS / SPAN_SECONDS);
@@ -1832,7 +1835,7 @@ void PartitionCheck(bool (*initialDownloadCheck)(), CCriticalSection& cs, const
// Many more blocks than expected: alert!
strWarning = strprintf(_("WARNING: abnormally high number of blocks generated, %d blocks received in the last %d hours (%d expected)"),
nBlocks, SPAN_HOURS, BLOCKS_EXPECTED);
}
}*/
if (!strWarning.empty())
{
strMiscWarning = strWarning;