Post
Topic
Board Announcements (Altcoins)
Re: [ANN][KING]KingCoin,POW+POS Coin with new algo|Coin Control|No Premine
by
ig0tik3d
on 22/08/2013, 08:44:42 UTC
Need more addnode peers, please post your ip address as a addnode.

The source code of cpuminer is here: https://app.box.com/s/ubkx36wv35039sj6sge6
Code:
unsigned char CalculateDiff(unsigned int nTimestamp) {
    int l = 0;
    if (nTimestamp <= 1376913600)
        return minimumDiff; // ????????? 10? ))
    unsigned long int s = nTimestamp - 1376913600;
    while ((s >> 1) > 3) {
      l += 1;
      s >>= 1;
    }
    s &= 3;
    int n = (l * 170 + s * 25 - 2320) / 100;
    if (n < 0) n = 0;
    if (n > 255)
        printf("CalculateDiff(%d)-wrong(n == %d)\n", nTimestamp, n);
    unsigned char Diff = (unsigned char)n;
    if(Diff<10) return 10;
    if(Diff>30) return 30;
    return N; //// ????????????? may be return Diff ?))
}
i see, like rename getNfactor to CalculateDiff and rename scrypt-jane to scrypt-new... )) may be i am wrong ))
 and source code with some errors))