Title: Genesis block not accepted
Post by: pooler1122 on June 13, 2014, 03:14:55 PM
Now , i meet one issue , after i twice compile wallet , i can't create genesis blcok , how to fix it , need help !!! below is debug.log Bound to [::]:23446 Bound to 0.0.0.0:23446 Loading block index... CBlock(hash=4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373, nTime=1402659000, nBits=1e0fffff, nNonce=1373666, vtx=1, vchBlockSig=) Coinbase(hash=ac989e21f3, nTime=1402659000, ver=1, vin.size=1, vout.size=1, nLockTime=0) CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f270431332f36) CTxOut(empty) vMerkleTree: ac989e21f3 block.GetHash() == 4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15 block.hashMerkleRoot == ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373 block.nTime = 1402659000 block.nNonce = 1373666 ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000 ERROR: LoadBlockIndex() : genesis block not accepted EnvShutdown exception: Invalid argument (22)
Title: Re: Genesis block not accepted
Post by: bitcoinreactor on June 13, 2014, 04:43:58 PM
Now , i meet one issue , after i twice compile wallet , i can't create genesis blcok , how to fix it , need help !!! below is debug.log Bound to [::]:23446 Bound to 0.0.0.0:23446 Loading block index... CBlock(hash=4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373, nTime=1402659000, nBits=1e0fffff, nNonce=1373666, vtx=1, vchBlockSig=) Coinbase(hash=ac989e21f3, nTime=1402659000, ver=1, vin.size=1, vout.size=1, nLockTime=0) CTxIn(COutPoint(0000000000, 4294967295), coinbase 04ffff001d020f270431332f36) CTxOut(empty) vMerkleTree: ac989e21f3 block.GetHash() == 4398bf41575e641c78eccc4d50bc99b7f2165fc23402b4e614d8255e28814f15 block.hashMerkleRoot == ac989e21f322658b30daf9934753f1c1f0650000f844add87bc4332fd548d373 block.nTime = 1402659000 block.nNonce = 1373666 ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000 ERROR: LoadBlockIndex() : genesis block not accepted EnvShutdown exception: Invalid argument (22) kernel.cpp is the answer :) hardcoded list of stake modifiers checksum there :)
Title: Re: Genesis block not accepted
Post by: bitcoinreactor on June 14, 2014, 07:45:48 AM
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 ! 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 unsigned int nModifierInterval = MODIFIER_INTERVAL;
// Hard checkpoints of stake modifiers to ensure they are deterministic static std::map<int, unsigned int> mapStakeModifierCheckpoints = boost::assign::map_list_of ( 0, 0xfd11f4e7u ) ; so .. here's what i'd answer : just .... log it damnit :) find the line that outputs this log entry and ... just log the stake modifier checksum! 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) : 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);
Title: Re: Genesis block not accepted
Post by: bitcoinreactor on June 14, 2014, 07:49:49 AM
again ... if you couldn't find that out by yourself, please ... stop trying and do not release another fork !
|