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

sendrawtransaction and txn-mempool-conflict

couldn't connect to server: EOF reached (code 1)