Post
Topic
Board Announcements (Altcoins)
Re: [ANN][MEOW] KittehCoin Relaunch IS HERE!!!!
by
vaelrock
on 04/02/2014, 11:36:41 UTC

We feel the 1hr retarget is really the best way to deal with this. A longer retarget would lead to the diff being artificially inflated after a drive-by. The 1hr retarget helps to calm the water very quickly after a drive by. Internally we discussed increasing to 4hrs, but did not for the reasons mentioned.

Is that 1 hr or 60 Blocks?

Code:
static const int64 nTargetTimespan = 1 * 60 * 60; // KittehCoin: retarget every 1 hours
int64 GetTargetSpacing()
{
    int nTargetSpacing = 30; // OLD KittehCoin block spacing: 30 seconds

    if(nBestHeight > HARDFORK_BLOCK_HEIGHT)
        nTargetSpacing = 60; // NEW KittehCoin block spacing: 60 seconds

    return nTargetSpacing;
}

int64 GetInterval()
{
    int64 nInterval = nTargetTimespan / GetTargetSpacing();

    return nInterval;
}

...

unsigned int static GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlock *pblock)
{
    ...
    if ((pindexLast->nHeight+1) % GetInterval() != 0)
    {
        ...


Every 120 blocks, then 60 blocks after the hardfork