Post
Topic
Board Altcoin Discussion
Re: Genesis block not accepted
by
bitcoinreactor
on 14/06/2014, 07:45:48 UTC
Just in case someone would ask something like this (see below), here is what i would answer, hopefully helping other people :

But ... again ... if you can't find this out ... building, maintaining and releasing another fork just may not be a thing for you to do !

Quote
Hi , below is the kernel.cpp  code , can you help me check , and how to update and create genesis block , thanks

below is the kernel.cpp  code

Code:
unsigned int nModifierInterval = MODIFIER_INTERVAL;

// Hard checkpoints of stake modifiers to ensure they are deterministic
static std::map mapStakeModifierCheckpoints =
    boost::assign::map_list_of
    (     0, 0xfd11f4e7u )
;


so .. here's what i'd answer :

just .... log it damnit Smiley

find the line that outputs this log entry and ... just log the stake modifier checksum!
Quote
ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000


If you can't find that out either (ooooo ... this coin's gonna be SOMETHING) :
Quote
if (!CheckStakeModifierCheckpoints(pindexNew->nHeight, pindexNew->nStakeModifierChecksum))
        return error("AddToBlockIndex() : Rejected by stake modifier checkpoint height=%d, modifier=0x%016"PRI64x" pindexNew->nStakeModifierChecksum=0x%08"PRI64x, pindexNew->nHeight, nStakeModifier, pindexNew->nStakeModifierChecksum);