user71763: 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 --> 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

user73818: It seems the -reindex parameter solves the issue.
https://github.com/bitcoin/bitcoin/issues/8081

71763: <p>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</p>

<pre><code>./src/cryptoind 
</code></pre>

<p>I get alwais the same result:</p>

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

<p>Going deeper in the code the following statement always fails (main.cpp):</p>

<pre><code>if (UintToArith256(hash) &gt; bnTarget)
</code></pre>

<p>Seems like the genesis block does not respect the difficulty (PoW)</p>

<p>Someone faced the same issue? Thank you all</p>
 73818: <p>It seems the -reindex parameter solves the issue.</p>

<p><a href="https://github.com/bitcoin/bitcoin/issues/8081" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/issues/8081</a></p>
