X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fcheckpoints.cpp;h=d004c84ef99f069203989938a40043c5111deb67;hp=6c28158a99af6aee1aa3165aed6487052d50826a;hb=09f2a990950512cbe418526d91838887a0dded2a;hpb=47c304dcf377722321f7e1cbe7aa371725fba258 diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 6c28158..d004c84 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -188,9 +188,9 @@ namespace Checkpoints uint256 AutoSelectSyncCheckpoint() { - // select block roughly 8 hours ago + // select a block some time ago CBlockIndex *pindex = mapBlockIndex[hashSyncCheckpoint]; - while (pindex->pnext && pindex->pnext->GetBlockTime() + AUTO_CHECKPOINT_MIN_SPAN <= GetAdjustedTime()) + while (pindex->pnext && pindex->pnext->GetBlockTime() + CHECKPOINT_MIN_SPAN <= GetAdjustedTime()) pindex = pindex->pnext; return pindex->GetBlockHash(); } @@ -265,7 +265,6 @@ namespace Checkpoints hashPendingCheckpoint = hash; checkpointMessagePending.SetNull(); printf("ResetSyncCheckpoint: pending for sync-checkpoint %s\n", hashPendingCheckpoint.ToString().c_str()); - // TODO: when to ask for the checkpoint chain? } BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, mapCheckpoints)