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
I get alwais the same result:
ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8) ... ActivateBestChainStep --> Failed!
Going deeper in the code the following statement always fails (main.cpp):
if (UintToArith256(hash) > bnTarget)
Seems like the genesis block does not respect the difficulty (PoW)
Someone faced the same issue? Thank you all