Post
Topic
Board Announcements (Altcoins)
Re: [ANN][YAC] YACoin ongoing development - Unofficial client fork
by
ongle
on 18/05/2013, 15:55:06 UTC
Its worth noting the official windows client says "WARNING: Checkpoint is too old. Wait for block chain to download or notify developers"

As far as I understand the issue there, it could be fixed by adding hash of some recent block to checkpoints.cpp file at github and compiling new client.

Code:
    // Is the sync-checkpoint too old?
    bool IsSyncCheckpointTooOld(unsigned int nSeconds)
    {
        LOCK(cs_hashSyncCheckpoint);
        // sync-checkpoint should always be accepted block
        assert(mapBlockIndex.count(hashSyncCheckpoint));
        const CBlockIndex* pindexSync = mapBlockIndex[hashSyncCheckpoint];
        return (pindexSync->GetBlockTime() + nSeconds < GetAdjustedTime());
    }

What's the point of that checkpoint age test? Wouldn't the blocks eventually get old requiring an update to the hard coded checkpoint list?