Author

Topic: Help with hashMerkleRoot - I've done my research just not getting very far (Read 2019 times)

full member
Activity: 326
Merit: 100
All the data in your log there is invalid - except for the merkle root. You then need to instaer that into the hashmerkleroot bit in the code, compile, runa again, and it should crash at hashgenesisblock. Then you will need to open the debug again and add the block.nnonce and hashgenesisblock values. After that it should work without crashing Smiley
newbie
Activity: 35
Merit: 0
Hi All,

In the aim of learning and becoming more experienced with bitcoin/altcoin I have decided to create my own coin (not going to release it, just create it for the fun) but I am having problems when trying to run the daemon.

I get the error

Quote
./TestCoind
TestCoind: main.cpp:2555: bool LoadBlockIndex(bool): Assertion `block.hashMerkleRoot == uint256("0x000006fd9b83d4243967adc6e7d2826dedbf2c27b6586d7bdac67250d2120b61")' failed.
Aborted (core dumped)

So I had a read around google and came across a site which says to check the debug log, So I did and it showed me this

Quote
CBlock(hash=5e2fed58e24adb777e9e8ebea2c98f93854c9d84c69d77f7bd0b7ac06e5a6380, ver=1, hashPrevBlock=0000000000000000000000000000000000000000000000000000000000000000, hashMerkleRoot=7f531b970548bfea820871baaf2e5b2db0aef49d629a4de8b733426d54f5bc9d, nTime=1411026938, nBits=1e0fffff, nNonce=713214, vtx=1, vchBlockSig=)
  Coinbase(hash=7f531b9705, nTime=1401182152, ver=1, vin.size=1, vout.size=1, nLockTime=0)
    CTxIn(COutPoint(0000000000, 4294967295), coinbase 00012a1558313120436f696e73204765742043726561746564)
    CTxOut(empty)
  vMerkleTree: 7f531b9705
block.GetHash() == 5e2fed58e24adb777e9e8ebea2c98f93854c9d84c69d77f7bd0b7ac06e5a6380
block.hashMerkleRoot == 7f531b970548bfea820871baaf2e5b2db0aef49d629a4de8b733426d54f5bc9d
block.nTime = 1411026938
block.nNonce = 713214

So I tried these settings in the code and rebuild but still get the same error. is there a more foolproof way to fix this or get the merklehash, I have been at it for hours Sad

also, is there a merkle hash I can use for any coin, say if I wanted to create another one?

Regards,

Sanquin
Jump to: