<p>Thant is correct. You have to mine the genesis block first separately if you are compiling the most recent bitcoin codebase. </p>

<p>Checkout : <a href="https://github.com/vlamer/genesis-block-generator" rel="nofollow noreferrer">https://github.com/vlamer/genesis-block-generator</a></p>

CC BY-SA 3.0
2018-03-01T08:14:38.133Z
Is it still work with newest litecoin source? (0.15.1)
creator
CC BY-SA 4.0
2018-08-14T21:16:42.713Z
I'm not entirely sure of that but since its a complete copy of bitcoin source, I don't think anything would be different.
Laksh Gandikota
CC BY-SA 3.0
2017-11-20T06:35:13.503Z
2017-11-20T06:35:13.503Z
Laksh Gandikota
<p>I have built the bitcoin source code with a new <code>pszTimestamp</code>, <code>hashGenesisBlock</code> and <code>hashMerkleRoot</code></p>

<p>The code builds fine and does not run into any <code>assert</code> problems when validating these hashes on <code>[line 128 and line 129 of chainparams.cpp]</code>. (Great)</p>

<h2>However...</h2>

<p>When I run <code>bitcoin-qt</code> I run into the error below:</p>

<p><code>Error: Incorrect or no genesis block found. Wrong datadir for network?</code></p>

<h2>Potential Cause:</h2>

<p>Is the reason I am encountering this error because I have not yet mined the genesis block? If so how do I do that? It seems that in the bitcoin code there is nothing about mining the genesis block. I have heard rumours that this functionality was removed and that I will have to download a separate program for this step. Please confirm.</p>

CC BY-SA 3.0
2018-03-01T07:42:24.963Z
I met same problem. I met CBlockDiskPos(nFile=0, nPos=8) error or AcceptBlock: high-hash, proof of work failed (code 16) error.  Have you solved? Any updates?
creator
<bitcoin-core><altcoin><genesis-block>
Why can't the genesis block be found I create an altcoin?
Dev Oskii
# Why can't the genesis block be found I create an altcoin?

(Asked by: username_0 on 2017-11-14)

I have built the bitcoin source code with a new `pszTimestamp`, `hashGenesisBlock` and `hashMerkleRoot`

The code builds fine and does not run into any `assert` problems when validating these hashes on `[line 128 and line 129 of chainparams.cpp]`. (Great)

## However...

When I run `bitcoin-qt` I run into the error below:

`Error: Incorrect or no genesis block found. Wrong datadir for network?`

## Potential Cause:

Is the reason I am encountering this error because I have not yet mined the genesis block? If so how do I do that? It seems that in the bitcoin code there is nothing about mining the genesis block. I have heard rumours that this functionality was removed and that I will have to download a separate program for this step. Please confirm.

**Tags:** bitcoin-core, altcoin, genesis-block

> **Comments:**
> **username_1**: I met same problem. I met CBlockDiskPos(nFile=0, nPos=8) error or AcceptBlock: high-hash, proof of work failed (code 16) error.  Have you solved? Any updates?  

---

## 1 answers

### Answer by username_2 on 2017-11-20. Score: 0 | Accepted answer

Thant is correct. You have to mine the genesis block first separately if you are compiling the most recent bitcoin codebase.

Checkout : <https://github.com/vlamer/genesis-block-generator>

> **Comments:**
> **username_1**: Is it still work with newest litecoin source? (0.15.1)  
> **username_2**: I'm not entirely sure of that but since its a complete copy of bitcoin source, I don't think anything would be different.  

---

