Bitcoin Forum
October 20, 2024, 10:05:32 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Has anyone ran into this issue?  (Read 882 times)
sp00lin9 (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
March 09, 2015, 04:20:50 AM
 #1

im trying to teach myself how to make a coin for fun & i just ran into this problem

Code:
main.cpp:2626: bool LoadBlockIndex(bool): Assertion `block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)' failed.

i got this after inserting the genesis block hash & recompiling.

any ideas?
Ix
Full Member
***
Offline Offline

Activity: 218
Merit: 128


View Profile
March 09, 2015, 04:36:31 AM
 #2

I don't know the bitcoin code, but I would presume that the "hashGenesisBlock" value is equal to Bitcoin's genesis block hash, not the one you've created. You need to change it to be equal to your genesis block hash.
hua_hui
Legendary
*
Offline Offline

Activity: 1386
Merit: 1016



View Profile
March 09, 2015, 05:14:17 AM
 #3

This kind of topic should go to Development & Technical Discussion board: https://bitcointalk.org/index.php?board=6.0, there are more professional coders there.
sp00lin9 (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
March 09, 2015, 05:51:51 AM
 #4

This kind of topic should go to Development & Technical Discussion board: https://bitcointalk.org/index.php?board=6.0, there are more professional coders there.

thanks ill give it a shot
LuckyBtc
Legendary
*
Offline Offline

Activity: 1288
Merit: 1012


View Profile
March 09, 2015, 10:22:22 AM
 #5

im trying to teach myself how to make a coin for fun & i just ran into this problem

Code:
main.cpp:2626: bool LoadBlockIndex(bool): Assertion `block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)' failed.

i got this after inserting the genesis block hash & recompiling.

any ideas?
Which coin's source you're using to make your coin? Try with different coin's source i think the some code has been removed  from main.cpp ?
sp00lin9 (OP)
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
March 09, 2015, 02:32:07 PM
 #6

im trying to teach myself how to make a coin for fun & i just ran into this problem

Code:
main.cpp:2626: bool LoadBlockIndex(bool): Assertion `block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)' failed.

i got this after inserting the genesis block hash & recompiling.

any ideas?
Which coin's source you're using to make your coin? Try with different coin's source i think the some code has been removed  from main.cpp ?

I've been tinkering around with OHLC's source

https://github.com/JamesAndersson/OHLC

I found the genesishash input under main.h & not main.cpp
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!