Allow CheckProofOfWork to take optional CChainParams for genesis block mining