Bitcoin Forum
November 18, 2017, 10:04:38 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Help with hashMerkleRoot - I've done my research just not getting very far  (Read 1912 times)
Sanquin
Jr. Member
*
Offline Offline

Activity: 35


View Profile
September 18, 2014, 08:06:47 AM
 #1

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
1511042678
Hero Member
*
Offline Offline

Posts: 1511042678

View Profile Personal Message (Offline)

Ignore
1511042678
Reply with quote  #2

1511042678
Report to moderator
Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511042678
Hero Member
*
Offline Offline

Posts: 1511042678

View Profile Personal Message (Offline)

Ignore
1511042678
Reply with quote  #2

1511042678
Report to moderator
1511042678
Hero Member
*
Offline Offline

Posts: 1511042678

View Profile Personal Message (Offline)

Ignore
1511042678
Reply with quote  #2

1511042678
Report to moderator
nuggetbram
Full Member
***
Offline Offline

Activity: 129


View Profile
September 20, 2014, 09:56:23 AM
 #2

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

Click HERE for free totally legit free money!
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!