Author

Topic: Genesis block not accepted (Read 2428 times)

member
Activity: 112
Merit: 10
June 14, 2014, 02:49:49 AM
#4
again ... if you couldn't find that out by yourself, please ... stop trying and do not release another fork !
member
Activity: 112
Merit: 10
June 14, 2014, 02:45:48 AM
#3
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);
member
Activity: 112
Merit: 10
June 13, 2014, 11:43:58 AM
#2
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

Code:
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 Smiley
hardcoded list of stake modifiers checksum there Smiley
member
Activity: 91
Merit: 10
June 13, 2014, 10:14:55 AM
#1
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

Code:
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)

Jump to: