From d4388ed52b88a94231e42fe1948f8d057c85a6c7 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 10 Jun 2016 11:43:40 +1200 Subject: [PATCH] Updated a hard-coded number of blocks to account for decreased block interval --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1697a17dc..7ca5775b7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1432,9 +1432,9 @@ void CheckForkWarningConditions() if (IsInitialBlockDownload()) return; - // If our best fork is no longer within 72 blocks (+/- 12 hours if no one mines it) + // If our best fork is no longer within 288 blocks (+/- 12 hours if no one mines it) // of our head, drop it - if (pindexBestForkTip && chainActive.Height() - pindexBestForkTip->nHeight >= 72) + if (pindexBestForkTip && chainActive.Height() - pindexBestForkTip->nHeight >= 288) pindexBestForkTip = NULL; if (pindexBestForkTip || (pindexBestInvalid && pindexBestInvalid->nChainWork > chainActive.Tip()->nChainWork + (GetBlockProof(*chainActive.Tip()) * 6)))