X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=970dd7e8d705eb6a22c9d831a08c790ec6a9e16f;hb=3bdc0abd5d7e262151c62426cb3006433fb21ffc;hp=f3f1d55b9cafde74f90913e4cb4aaefa964e9d59;hpb=ae803b031b600e073edf8507ab943580672f93c4;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index f3f1d55..970dd7e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2347,9 +2347,9 @@ bool CBlock::AcceptBlock() return DoS(100, error("AcceptBlock() : incorrect %s", IsProofOfWork() ? "proof-of-work" : "proof-of-stake")); int64_t nMedianTimePast = pindexPrev->GetMedianTimePast(); - int nMaxOffset = 12 * 3600; // 12 hours + int nMaxOffset = 12 * nOneHour; // 12 hours if (pindexPrev->nTime < 1450569600) - nMaxOffset = 7 * 86400; // One week until 20 Dec, 2015 + nMaxOffset = nOneWeek; // One week until 20 Dec, 2015 // Check timestamp against prev if (GetBlockTime() <= nMedianTimePast || FutureDrift(GetBlockTime()) < pindexPrev->GetBlockTime())