From a195a5266cbf385d6bf9dc7dbea0272f98aa36c9 Mon Sep 17 00:00:00 2001 From: nzsquirrell Date: Wed, 2 Mar 2016 19:40:37 +1300 Subject: [PATCH] don't display warnings about lack of blocks per 4 hour window --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c488cdf3..2ea97397 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;