How does zcash master version check the genesis equihash solution?

In version v0.11.2.z9, I noticed that in function CheckEquihashSolution, validation of equihash solution of genesis block is left out, but it’s validated in master version. So I want to know why this change is made, is it related to the fact cicular dependency between nSolution and block hash through nNonce is conquered ?
Or how to find a genesis nNonce that make condition block.hash <= hashTarget succeeded and nSolution satisfies requirements ?

This was simply a bug in v0.11.2.z9, fixed in v1.0.0beta1: https://github.com/zcash/zcash/commit/488e61e85200e81c6fa64cccf490cbcd0de2ac4d#diff-ba91592f703a9d0badf94e67144bc0aa

There was never any problem with verifying the Equihash solution of the genesis block; some debugging code had been accidentally committed in https://github.com/zcash/zcash/commit/5be6abbf84c46e8fc4c8ef9be987a44de22d0d05 .

1 Like

Thanks for you reply, daira.
How did you generate genesis block ?
I tried and failed…Can you give me any link for genesis mining ? Thx again.