X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=3ab03f2686f2215a1c6f97474eac0a8d38bc9abb;hb=1ebe5b92ef18395cdae9b88fc38b0ed6166c3243;hp=f8af9dfe7cdf13d02ea871fa009eed1fde13c94e;hpb=f48c974108866253988f6cf88bad5b83b1a0f0b0;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index f8af9df..3ab03f2 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 (fTestNet || pindexPrev->nTime < 1450569600) - nMaxOffset = 7 * 86400; // One week (permanently on testNet or until 20 Dec, 2015 on mainNet) + nMaxOffset = 7 * nOneWeek; // One week (permanently on testNet or until 20 Dec, 2015 on mainNet) // Check timestamp against prev if (GetBlockTime() <= nMedianTimePast || FutureDrift(GetBlockTime()) < pindexPrev->GetBlockTime())