Author

Topic: which step wrong for generate genesis block (Read 316 times)

sr. member
Activity: 798
Merit: 253
September 09, 2016, 12:17:42 AM
#1
 I just set a new pszTimestamp, new block.nTime, block.nNonce=0, and set assert(block.hashMerkleRoot == uint256("0x"), and clean uint256 hashGenesisBlock("0x"), and compile, and fill in the hashMerkleRoot, compile and run again, fill in block.nNonce, hashGenesisBlock("0x") this time, then compile again, get the stake modifier checkpoint error when run
anything wrong or any step wrong? I used to work on the same way, but right now have problem, what is wrong? i forget something?




CBlock(hash=00000f1b793437f9c95e2d0932156150d1cd584cfc517fea2daf31ae174f9ea0, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=1390b75dd1bdfe9b83feaf692e62db43157111cac7df224174151f2bc2477574, nTime=1473283649, nBits=1e0fffff, nNonce=77745, vtx=1, vchBlockSig=)
  Coinbase(hash=1390b75dd1, nTime=1473283649, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 00012a0c6d616b6520697420676f6f64)
    CTxOut(empty)
  vMerkleTree: 1390b75dd1
block.GetHash() == 00000f1b793437f9c95e2d0932156150d1cd584cfc517fea2daf31ae174f9ea0
block.hashMerkleRoot == 1390b75dd1bdfe9b83feaf692e62db43157111cac7df224174151f2bc2477574
block.nTime = 1473283649
block.nNonce = 77745
CBlock(hash=00000f1b793437f9c95e2d0932156150d1cd584cfc517fea2daf31ae174f9ea0, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=1390b75dd1bdfe9b83feaf692e62db43157111cac7df224174151f2bc2477574, nTime=1473283649, nBits=1e0fffff, nNonce=77745, vtx=1, vchBlockSig=)
  Coinbase(hash=1390b75dd1, nTime=1473283649, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 00012a0c6d616b6520697420676f6f64)
    CTxOut(empty)
  vMerkleTree: 1390b75dd1
ERROR: AddToBlockIndex() : Rejected by stake modifier checkpoint height=0, modifier=0x0000000000000000
ERROR: LoadBlockIndex() : genesis block not accepted
Jump to: