2

Given a particular block number, how can I calculate the Ethash used by this block?

0

For calculating the Ethash you need a lot more than just the block number (you need the entire header). The documentation about how this is calculated can be seen here.

You can copy paste the python code provided in the documentation in a file and pass the block header to the hashimoto_light function defined to calculate the Ethash. This needs no extra packages other than bare Python 3 so it should be easy to run and play with.

Hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.