Post
Topic
Board Altcoin Discussion
Re: How to work out 'checkpoint of stake modifiers'?
by
mammix2
on 02/11/2016, 00:06:06 UTC
Hi All

Im deving for other coins at the moment, can someone tell me how to work out the 'checkpoint of stake modifier' values within kernel.cpp ?

This is for one of those oh so popular PoS coins at the moment  Wink


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


Bump! I am interested how to get a Stake Modifier Checksum for the Genesis Block? I got this error:

Code:
ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000
ERROR: LoadBlockIndex() : genesis block not accepted

You need to comment out this check while creating the genesis block

example..
https://github.com/mammix2/boostcoin-core/blob/master/src/main.cpp#L2074-L2075

Then uncomment it once you're up and running