Post
Topic
Board Announcements (Altcoins)
Re: [ANN] LuckyCoin LKY | Lucky Blocks | Fast | Fun | Fair
by
BitJohn
on 25/05/2013, 12:49:31 UTC
this idiot uses a simple random number generator to determie block rewards. guess what happens when i remove that and just return max block reward instead?

i will be posting an altered client that gets 5k coin rewards every time, in the next hour or so. this coin is trash and needs to die.

Actually that doesn't look possible:

Code:
const char* cseed = prevHash.ToString().substr(8,7).c_str();
long seed = hex2long(cseed);

int rand = generateMTRandom(seed, 100000);

if(rand > 30000 && rand < 35001)
nSubsidy = 188 * COIN;
else if(rand > 70000 && rand < 71001)
nSubsidy = 588 * COIN;
else if(rand > 50000 && rand < 50011)
nSubsidy = 5888 * COIN;

The seed is based on the previous hash, hence it might be open to some kind of attacks, but "just changing the function" should not work.
Unless he botched badly block verification, of course.

I changed the function at launch to just give me 5888 coins.  Found two blocks, both rejected by the network.  Nope, can't cheat it this way. Smiley

glad it got tested