Post
Topic
Board Announcements (Altcoins)
Re: [ANN][FLAP] FlappyCoin ★ 0 Premined ★ TRADED ON CRYPTSY ★ GAME INSIDE WALLET
by
Cizuz
on 08/04/2014, 05:09:10 UTC
We're considering recompiling under name of FlapCoin with a change of payout at block 80,000. Best case is if ANYONE can contact the dev or knows how, I did the 2 minutes of work updating the code for fixing payouts.

int64 static GetBlockValue(int nHeight, int64 nFees, uint256 prevHash)
{
    int64 nSubsidy = 1000 * COIN;

    std::string cseed_str = prevHash.ToString().substr(7,7);
    const char* cseed = cseed_str.c_str();
    long seed = hex2long(cseed);
    int rand = generateMTRandom(seed, 999999);
    int rand1 = 0;
    int rand2 = 0;
    int rand3 = 0;
    int rand4 = 0;
    int rand5 = 0;

    if(nHeight < 80000)
    {
        nSubsidy = (1 + rand) * COIN;
    }
    else if(nHeight < 200000)
    {
        cseed_str = prevHash.ToString().substr(7,7);
        cseed = cseed_str.c_str();
        seed = hex2long(cseed);
        rand1 = generateMTRandom(seed, 99999);
        nSubsidy = (1 + rand1) * COIN;
    }
    else if(nHeight < 300000)
    {
        cseed_str = prevHash.ToString().substr(6,7);
        cseed = cseed_str.c_str();
        seed = hex2long(cseed);
        rand2 = generateMTRandom(seed, 49999);
        nSubsidy = (1 + rand2) * COIN;
    }
    else if(nHeight < 400000)
    {
        cseed_str = prevHash.ToString().substr(7,7);
        cseed = cseed_str.c_str();
        seed = hex2long(cseed);
        rand3 = generateMTRandom(seed, 24999);
        nSubsidy = (1 + rand3) * COIN;
    }
    else if(nHeight < 500000)
    {
        cseed_str = prevHash.ToString().substr(7,7);
        cseed = cseed_str.c_str();
        seed = hex2long(cseed);
        rand4 = generateMTRandom(seed, 12499);
        nSubsidy = (1 + rand4) * COIN;
    }
    else if(nHeight < 600000)
    {
        cseed_str = prevHash.ToString().substr(6,7);
        cseed = cseed_str.c_str();
        seed = hex2long(cseed);
        rand5 = generateMTRandom(seed, 6249);
        nSubsidy = (1 + rand5) * COIN;
    }

    return nSubsidy + nFees;
}