Bitcoin Forum
May 07, 2024, 04:02:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem with genesis block replacement  (Read 103 times)
BlackHatCoiner (OP)
Legendary
*
Online Online

Activity: 1512
Merit: 7357


Farewell, Leo


View Profile
April 08, 2021, 06:37:46 PM
Last edit: April 08, 2021, 08:16:35 PM by BlackHatCoiner
Merited by HCP (2)
 #1

I want to replace Satoshi's genesis block with mine. I've generated a valid hash with Genesis Block Generator, but I'm getting this error once I run the compiled bitcoin-qt.exe:


Here's my block's information:
Code:
Hash: 000000003a7385e7dae9000662e5867c9330386f627d7b4e54386d9fe8d3d488
Nonce: 3407408574
Unix time: 1617893414
Public key (Uncompressed): 043b41c76ed8826d0341f82ac92c607c943fb8bfb5074ee4fbb0aab578369854e13e9ce3ff2318dfbb69bf30b9c5e4153b4bf6ab3c3396344d1501e42c19113afe
Block message: "3 September 1974, the foundation."
Merkle root hash: 148e8dd6467cd80a4aa037cc8931a4ee0e05b38bdb5b723ace9cd7212d525424

These are the modifications that I've made on chainparams.cpp: [Link]. What exactly do I do wrong?



Edit: Fortunately, I found the solution by myself. I didn't know that you'd have to replace the genesis.hashMerkleRoot with the byteswapped result. I believed that I should have put the merkle hash from the genesis block generator in there. What a happy ending.



.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!