<p>The data directory (<code>~/.altcoin</code>) is created when the software is run, not when it is being compiled. Compilation has nothing to do with the datadir.</p>

CC BY-SA 3.0
2018-02-16T03:01:43.360Z
Thank you for your comment Andrew I actually was able to get the debug.log to work and create the merkle and hash with a little workaround. 

Getting a fatal error 
`ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)`
Wondering if you happen to have a suggestion for this?
I tried reindexing that didn't seem to make a difference, is this related to genesis not being mind?
Cryptojuice
CC BY-SA 3.0
2018-02-16T03:06:01.950Z
It means your genesis block is invalid. You probably did not mine it so it does not have a valid proof of work. You actually have to mine the genesis block and make sure it has a valid PoW.
Ava Chow
CC BY-SA 3.0
2018-02-16T03:25:51.477Z
I guess my confusion lies with the fact that if with that error I can't connect the seed nodes to actually mine the block or am I looking at this wrong?
Cryptojuice
CC BY-SA 3.0
2018-02-16T03:58:29.933Z
Normal miners won't be able to mine the genesis block. You have to temporarily modify your altcoin client to mine it.
Ava Chow
CC BY-SA 3.0
2018-02-16T04:56:21.080Z
Thank you that gives me an idea where to start looking, i appreciate it!
Cryptojuice
CC BY-SA 3.0
2018-02-16T01:20:50.193Z
2018-02-16T01:20:50.193Z
Ava Chow
<p>I am trying to create a genesis block for a personal play coin. I get the correct output of assertion failed. However when compiling I noticed the <code>./altcoin</code> folder is not created at all.  </p>

<bitcoin-core><altcoin-development><compiling><genesis-block>
No .altcoin directory being generated
Cryptojuice
# No .altcoin directory being generated

(Asked by: username_0 on 2018-02-14)

I am trying to create a genesis block for a personal play coin. I get the correct output of assertion failed. However when compiling I noticed the `./altcoin` folder is not created at all.

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


---

## 1 answers

### Answer by username_1 on 2018-02-16. Score: 1

The data directory (`~/.altcoin`) is created when the software is run, not when it is being compiled. Compilation has nothing to do with the datadir.

> **Comments:**
> **username_0**: Thank you for your comment Andrew I actually was able to get the debug.log to work and create the merkle and hash with a little workaround.   Getting a fatal error  `ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)` Wondering if you happen to have a suggestion for this? I tried reindexing that didn't seem to make a difference, is this related to genesis not being mind?  
> **username_1**: It means your genesis block is invalid. You probably did not mine it so it does not have a valid proof of work. You actually have to mine the genesis block and make sure it has a valid PoW.  
> **username_0**: I guess my confusion lies with the fact that if with that error I can't connect the seed nodes to actually mine the block or am I looking at this wrong?  
> **username_1**: Normal miners won't be able to mine the genesis block. You have to temporarily modify your altcoin client to mine it.  
> **username_0**: Thank you that gives me an idea where to start looking, i appreciate it!  

---

