diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-01 14:16:29 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-01 14:16:40 +0200 |
commit | c5f94f6584cb7e9119ca55ae57736682ce0a6225 (patch) | |
tree | 46446a74844ad3f115f90b66c5d27214069c68b3 | |
parent | 4d035bcc9aa3388dc7f37cf81451e55f0b6270ee (diff) | |
parent | 869262605f21973910640676858f4c4a3baa6da8 (diff) |
Merge #7780: [0.12] Disable bad-chain alert
8692626 Disable bad chain alerts (BtcDrak)
-rw-r--r-- | src/init.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index 69ef71b4f9..a712ffcac6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1645,10 +1645,17 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) StartNode(threadGroup, scheduler); // Monitor the chain, and alert if we get blocks much quicker or slower than expected - int64_t nPowTargetSpacing = Params().GetConsensus().nPowTargetSpacing; - CScheduler::Function f = boost::bind(&PartitionCheck, &IsInitialBlockDownload, - boost::ref(cs_main), boost::cref(pindexBestHeader), nPowTargetSpacing); - scheduler.scheduleEvery(f, nPowTargetSpacing); + // The "bad chain alert" scheduler has been disabled because the current system gives far + // too many false positives, such that users are starting to ignore them. + // This code will be disabled for 0.12.1 while a fix is deliberated in #7568 + // this was discussed in the IRC meeting on 2016-03-31. + // + // --- disabled --- + //int64_t nPowTargetSpacing = Params().GetConsensus().nPowTargetSpacing; + //CScheduler::Function f = boost::bind(&PartitionCheck, &IsInitialBlockDownload, + // boost::ref(cs_main), boost::cref(pindexBestHeader), nPowTargetSpacing); + //scheduler.scheduleEvery(f, nPowTargetSpacing); + // --- end disabled --- // Generate coins in the background GenerateBitcoins(GetBoolArg("-gen", DEFAULT_GENERATE), GetArg("-genproclimit", DEFAULT_GENERATE_THREADS), chainparams); |