From: CryptoManiac Date: Tue, 23 Feb 2016 20:20:39 +0000 (+0300) Subject: Force one week max offset for testNet. X-Git-Tag: nvc-v0.5.6~41 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=f48c974108866253988f6cf88bad5b83b1a0f0b0;hp=8e852575f30e7632129a2d4285c1815ba8b4927f Force one week max offset for testNet. --- diff --git a/src/main.cpp b/src/main.cpp index 54b852d..f8af9df 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2348,8 +2348,8 @@ bool CBlock::AcceptBlock() int64_t nMedianTimePast = pindexPrev->GetMedianTimePast(); int nMaxOffset = 12 * 3600; // 12 hours - if (pindexPrev->nTime < 1450569600) - nMaxOffset = 7 * 86400; // One week until 20 Dec, 2015 + if (fTestNet || pindexPrev->nTime < 1450569600) + nMaxOffset = 7 * 86400; // One week (permanently on testNet or until 20 Dec, 2015 on mainNet) // Check timestamp against prev if (GetBlockTime() <= nMedianTimePast || FutureDrift(GetBlockTime()) < pindexPrev->GetBlockTime())