Altcoin creation - Why did consensus.hashGenesisBlock assertion fail?

Altcoin creation - Why did consensus.hashGenesisBlock assertion fail?

I am creating an Altcoin for a university research project, and I have been stuck on this problem for a long time! I have created my genesis block in chainparams.cpp and have added my hash to

assert(consensus.hashGenesisBlock == uint256S("0x00006fb140260f8b7f1961f912c356e247f9819c337461f86a34d7380888c6ea"));

assert(genesis.hashMerkleRoot == uint256S("0xdf9006ed9733ba750c8fe379ec1ec922249730398dd5bde15ff55dd0c3c50be0"));

Now when I make install the program, Bitcoin-QT runs successfully, no assertion errors occur and the GUI opens up!

However, if I comment out the consensus.hashGenesisBlock = genesis.GetHash(); function, it throws an assertion error.

GELF-qt: chainparams.cpp:136: CMainParams::CMainParams(): Assertion consensus.hashGenesisBlock == uint256S("0x0000381de01e7ca10934a6e5d98b6886b4a44bfc488fbe9b75dafb932c462282") failed. Once I have mined the genesis block, am I right to remove the mining code? What step am I missing?

http://ift.tt/2hUDNCS

Comments

Popular posts from this blog

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password

When downloading the blockchain my application is become unusable, is there an issue with my code or am I using the BitcoinJ library incorrectly?

Mistakenly sent BTC from my personal wallet back to one of the exchange wallet addresses that I had received BTC from before - help recovering!