No .altcoin directory being generated

1

1

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.

Cryptojuice

Posted 2018-02-14T22:58:38.803

Reputation: 11

Answers

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.

Andrew Chow

Posted 2018-02-14T22:58:38.803

Reputation: 50 267

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 – 2018-02-16T03:01:43.360

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. – Andrew Chow – 2018-02-16T03:06:01.950

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 – 2018-02-16T03:25:51.477

Normal miners won't be able to mine the genesis block. You have to temporarily modify your altcoin client to mine it. – Andrew Chow – 2018-02-16T03:58:29.933

Thank you that gives me an idea where to start looking, i appreciate it! – Cryptojuice – 2018-02-16T04:56:21.080