Bitcoin Forum
May 21, 2024, 08:27:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Genesis Hash  (Read 615 times)
BadBunny (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
December 08, 2015, 12:15:51 AM
Last edit: December 08, 2015, 12:50:12 AM by BadBunny
 #1

I want to try to make an altcoin (not for distributing it) but i can't figure out where to put the genesis hash. For the fork i used librexcoin (https://github.com/librexcoin/librexcoin/blob/master/src/main.cpp).
Can someone help me? Thanks..

EDIT: This is the error
Code:
/LibrexCoind --testnet
LibrexCoind: main.cpp:2542: bool LoadBlockIndex(bool): Assertion `block.GetHash() == (!fTestNet ? hashGenesisBlock : hashGenesisBlockTestNet)' failed.
Aborted
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
December 08, 2015, 12:55:52 AM
 #2

https://github.com/librexcoin/librexcoin/blob/16215cd9258d57e0defac588861365c14b2e4d49/src/main.h#L54 for hash

https://github.com/librexcoin/librexcoin/blob/16215cd9258d57e0defac588861365c14b2e4d49/src/main.cpp#L2499 for the rest

BadBunny (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
December 08, 2015, 02:32:50 AM
Last edit: December 08, 2015, 03:12:48 AM by BadBunny
 #3


Thanks!
But now i have this

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

iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
December 08, 2015, 03:29:34 AM
 #4

I know, that's what the second link is for  Wink

BadBunny (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
December 08, 2015, 04:24:11 AM
 #5

but i have already changed the pszTimestamp , two times, same error.  Undecided
BadBunny (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
December 08, 2015, 02:43:28 PM
 #6

tried with different coin, same error. any help?
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
December 08, 2015, 05:22:27 PM
 #7

Timestamp is not all you need to change in second link

BadBunny (OP)
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
December 08, 2015, 05:42:46 PM
 #8

nNonce and nTime, got it!

Problems solved, the error was i diden't deleted the old genesis/merkler hash when i run the first build  Roll Eyes

Now i have to try without -testnet and understanding checkpoints.
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!