ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8) For study and fun I try to create my own altcoin.
I forked Litecoin, removed checkpoints, changed nTime, *pszTimestamp, noNce and hashed new hashes for genesis block in main net, testnet and regressiontest net.
The hardcoded assertions goes OK but when I start the deamon

./src/cryptoind 


I get alwais the same result:

ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8) ... ActivateBestChainStep --&gt; Failed!


Going deeper in the code the following statement always fails (main.cpp):

if (UintToArith256(hash) &gt; bnTarget)


Seems like the genesis block does not respect the difficulty (PoW)

Someone faced the same issue? Thank you all
It seems the -reindex parameter solves the issue.

https://github.com/bitcoin/bitcoin/issues/8081