Post
Topic
Board Announcements (Altcoins)
Re: [ANN] JIFFY COIN |SHA256 - 5.1M Max Coins | on YOBIT and SAFECEX
by
jiffy_dev
on 28/01/2016, 10:32:48 UTC
Ive noticed that the difficulty was much higher than the hash rate for the past few hours causing slow blocks again (up to an hour), this can be frustrating to miners so a difficulty re adjustment may be necessary here as any future announcements will probably cause an increase in interest followed by slow blocks again if miners leave.

I have worked on the code and compiled ok to make a hard fork but would like someone to check this, if anyone in this forum is familiar with coding and can check that this change would work that would be great.  The only change is the block change and the targetTimespan to 180 from 1800, this should change from every 10 blocks to every block.

I want to allow enough time for checking and notice to exchanges and mining pools.

main.cpp change

Code:
unsigned int static GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock)
{

    if ((pindexLast->nHeight+1) > 11000)  //proposed block change
    {
        nTargetTimespan = 180;
        nTargetSpacing = 180;
        nInterval = nTargetTimespan / nTargetSpacing;

    }

    else
    {
        nTargetTimespan = 1800;
        nTargetSpacing = 180;
        nInterval = nTargetTimespan / nTargetSpacing;
    }


    unsigned int nProofOfWorkLimit = Params().ProofOfWorkLimit().GetCompact();