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.

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.

  • 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 Feb 16 '18 at 3:01
  • 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 Feb 16 '18 at 3:06
  • 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 Feb 16 '18 at 3:25
  • Normal miners won't be able to mine the genesis block. You have to temporarily modify your altcoin client to mine it. – Andrew Chow Feb 16 '18 at 3:58
  • Thank you that gives me an idea where to start looking, i appreciate it! – Cryptojuice Feb 16 '18 at 4:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.