Author

Topic: Merkle Root problem. (Read 85 times)

newbie
Activity: 7
Merit: 0
April 24, 2018, 08:58:36 AM
#3
Will make a tutorial once i finish this coin.
sr. member
Activity: 486
Merit: 250
April 24, 2018, 08:45:45 AM
#2
Wow, impressive still coz I cannot do those kinds of things. Anything you can share as to how can we create coins do you have any resources we can check on? I would appreciate if you would. Thanks.
newbie
Activity: 7
Merit: 0
April 24, 2018, 08:35:27 AM
#1
Dear community,

For educational purpose im trying to create my own coin,



When i try to run my coin-qt i'l get this error.

Terminal :

Code:
./rhinoxcoin-qt
rhinoxcoin-qt: src/main.cpp:2802: bool InitBlockIndex(): Assertion `block.hashMerkleRoot == uint256("0xc3e530365aa74d32d5115aab6feb707ce72d82ee72b8693b213751b5e4ceaf7e")' failed.
Aborted (core dumped)

Debug log :

Code:
2018-04-24 11:29:57 Rhinoxcoin version v0.8.6.0-g9d11aba4c477-beta ()
2018-04-24 11:29:57 Using OpenSSL version OpenSSL 1.0.2g  1 Mar 2016
2018-04-24 11:29:57 Default data directory /home/dave/.rhinoxcoin
2018-04-24 11:29:57 Using data directory /home/dave/.rhinoxcoin
2018-04-24 11:29:57 Using at most 125 connections (1024 file descriptors available)
2018-04-24 11:29:57 Using 4 threads for script verification
2018-04-24 11:29:57 init message: Verifying wallet...
2018-04-24 11:29:57 dbenv.open LogDir=/home/dave/.rhinoxcoin/database ErrorFile=/home/dave/.rhinoxcoin/db.log
2018-04-24 11:29:57 Bound to [::]:2333
2018-04-24 11:29:57 Bound to 0.0.0.0:2333
2018-04-24 11:29:57 init message: Loading block index...
2018-04-24 11:29:57 Opening LevelDB in /home/dave/.rhinoxcoin/blocks/index
2018-04-24 11:29:57 Opened LevelDB successfully
2018-04-24 11:29:57 Opening LevelDB in /home/dave/.rhinoxcoin/chainstate
2018-04-24 11:29:57 Opened LevelDB successfully
2018-04-24 11:29:57 LoadBlockIndexDB(): last block file = 0
2018-04-24 11:29:57 LoadBlockIndexDB(): transaction index disabled
2018-04-24 11:29:57 Initializing databases...
2018-04-24 11:29:57 a7ad3499136bfb1d2cfbfb94ad8e1d28b447ea8b29bb40076cdf82572e224d39
2018-04-24 11:29:57 00000000a92bc246551b51a7b3794903d926cd3eeac2bc235eb243da88041d95
2018-04-24 11:29:57 55fb2cea67523e56269a3ab7c6d2db681e7c920421f324068658044bf13706f1

I have created a genenis hash for the main net and test net using GENESISH0 python script,
https://github.com/lhartikk/GenesisH0

Using the following data :

Scriptpubkey: 041c412c1c519b891fe3c6e23a31c99c76a61a1d76740aa7e44cef513b53bf8ab07f230db005313 eb6e7328b4da569eafa36c33013d54c8677cc75db7667937a56
PSZTIMESTAMP : NY TIMES 23 APRIL 2018Avengers the Most Lucrative Movie Franchise Ever Is Wrapping Up Why
ALGORITHM : SHA256
EPOCH TIME : auto
 

Code:
MAIN NET :
 
GENESISHASH: 00000000a92bc246551b51a7b3794903d926cd3eeac2bc235eb243da88041d95
TIME : 1524508661
NONCE : 1189467988
MERKLE : c3e530365aa74d32d5115aab6feb707ce72d82ee72b8693b213751b5e4ceaf7e
 
 
TEST NET :
 
GENESISHASH: 000000005794bc41eaabeaff7ae7ff99c632add8066f92d7a3c252ceb9e0c2af
TIME : 1524559326
NONCE:  1706123325
MERKLE : c3e530365aa74d32d5115aab6feb707ce72d82ee72b8693b213751b5e4ceaf7e


It seems that something is wrong with the merkle root, any ideas ?

Greetings Dave.













Jump to: