I'm trying to mine new blocks (based on bitcoin v 0.20.1) to different networks (mainnet and testnet). During the creation of the genesis block I changed some of the parameters like nTime, nNonce and nBits.
The hash I received from CreateGenesisBlock was update at
assert(consensus.hashGenesisBlock == uint256S("<my_new_hash>"));
I also updated these values:
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nMinimumChainWork = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
When I'm re compiling the code and trying to build the network, I always get this error:
AcceptBlock: high-hash, proof of work failed
What I'm doing wrong? Which parameters I should change that the block will be accepted?
Does the problem is the hash of the genesis?