I'm making a testcoin based on ronpaulcoin.
I got and put nTime, changed the hashMerkleRoot and hashGenesisBlock to "0x"
I compiled the coin without error
Started it and got :
LoadBlockIndexDB(): transaction index disabled
2014-01-30 20:46:06 Initializing databases...
2014-01-30 20:46:06 Searching for genesis block...
2014-01-30 20:46:06 nonce 00000000: hash = 4ad0368faba18c528c25387ec327777ab46cb03132527c67a9c5d0269f0f8443 (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
2014-01-30 20:46:14 nonce 00001000: hash = 0ab2b132c2796162a41f4e72ae52fc7bf8b9e916c50e52a903cac63e3af49541 (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
.....
....
.....
2014-01-30 22:56:34 nonce 00408000: hash = 2f170d0a67cd74eb0755774f3021d9f821c39b2875d49d840736480dd5b503da (target = 00000ffff0000000000000000000000000000000000000000000000000000000)
2014-01-30 22:56:40 ca9300f174b2667e352ba6680da1a7ea3d703143eeb73195a56a19572c9083cf
2014-01-30 22:56:40 0000000000000000000000000000000000000000000000000000000000000000
2014-01-30 22:56:40 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154
2014-01-30 23:31:04
I got the valid merkel root hash and put it in main.cpp :
69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154
assert(block.hashMerkleRoot == uint256("0x69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154"));
So far there is problem ? I think no.
I compiled again and run again, got this :
2014-01-30 23:31:04 LoadBlockIndexDB(): transaction index disabled
2014-01-30 23:31:04 Initializing databases...
2014-01-30 23:31:04 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f
2014-01-30 23:31:04 0000000000000000000000000000000000000000000000000000000000000000
2014-01-30 23:31:04 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154
2014-01-30 23:31:04 CBlock(hash=255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f, input=01000000000000000000000000000000000000000000000000000000000000000000000054d170c905b906bd520450ecd048db7b740be6de022257610e76fb23c4e7a0698fb7ea52f0ff0f1e00000000, PoW=4ad0368faba18c528c25387ec327777ab46cb03132527c67a9c5d0269f0f8443, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, nTime=1391114127, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-01-30 23:31:04 CTransaction(hash=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c55504849434f494e2054657374204275696c642c204974277320636f6d696e672021202620504849202620212032392f4a616e2f32303133204f62616d616361726520436f756c642048617665204d656c74646f776e)
CTxOut(nValue=16.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154
2014-01-30 23:35:44
I think new genesis block hash is :
255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7fPut this to uint256 hashGenesisBlock("0x255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f");
Compile & Run again and :
2014-01-30 23:35:44 Initializing databases...
2014-01-30 23:35:44 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f
2014-01-30 23:35:44 255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f
2014-01-30 23:35:44 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154
2014-01-30 23:35:44 CBlock(hash=255ba2b4d29544f05b8f64467ddbad254020be4ea301b96ea0020b06f7180c7f, input=01000000000000000000000000000000000000000000000000000000000000000000000054d170c905b906bd520450ecd048db7b740be6de022257610e76fb23c4e7a0698fb7ea52f0ff0f1e00000000, PoW=4ad0368faba18c528c25387ec327777ab46cb03132527c67a9c5d0269f0f8443, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, nTime=1391114127, nBits=1e0ffff0, nNonce=0, vtx=1)
2014-01-30 23:35:44 CTransaction(hash=69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154, ver=1, vin.size=1, vout.size=1, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 04ffff001d01044c55504849434f494e2054657374204275696c642c204974277320636f6d696e672021202620504849202620212032392f4a616e2f32303133204f62616d616361726520436f756c642048617665204d656c74646f776e)
CTxOut(nValue=16.00000000, scriptPubKey=040184710fa689ad5023690c80f3a4)
vMerkleTree: 69a0e7c423fb760e61572202dee60b747bdb48d0ec500452bd06b905c970d154
2014-01-30 23:35:44 Pre-allocating up to position 0x1000000 in blk00000.dat
2014-01-30 23:35:44 ERROR: CheckProofOfWork() : hash doesn't match nBits
2014-01-30 23:35:44 ERROR: CBlock::ReadFromDisk() : errors in block header
2014-01-30 23:35:44 *** Failed to read block
2014-01-30 23:35:44 Error: Failed to read block
2014-01-30 23:35:44 ERROR: LoadBlockIndex() : genesis block not accepted
2014-01-30 23:35:44 : Error initializing block database.
I can't see what
nNonce value that I have to write and why I'm getting
ERROR: CheckProofOfWork() : hash doesn't match nBits error ?
I run again and I got :
nFileVersion = 80602
2014-01-30 23:45:46 Performing wallet upgrade to 60000
2014-01-30 23:45:46 keypool added key 1, size=1
2014-01-30 23:45:46 keypool added key 2, size=2
.......
2014-01-30 23:45:47 keypool added key 101, size=101
2014-01-30 23:45:47 keypool reserve 1
2014-01-30 23:45:47 keypool keep 1
2014-01-30 23:45:47 wallet 674ms
2014-01-30 23:45:47 ERROR: CheckProofOfWork() : hash doesn't match nBits
2014-01-30 23:45:47 ERROR: CBlock::ReadFromDisk() : errors in block header
2014-01-30 23:45:47 *** Failed to read block
2014-01-30 23:45:47 Error: Failed to read block
2014-01-30 23:45:47 init message: Loading addresses...
2014-01-30 23:45:47 Loaded 0 addresses from peers.dat 0ms
2014-01-30 23:45:47 Error: Failed to connect best block
Please help to last part of building this test coin. I'm also offering
.1 Btc.
Thanks.