Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
whisper: PoW calculations as specified in EIP-627 #19753
referenced this pull request
Jun 25, 2019
kdeme left a comment
The hashing / leadingZeros calculation looks good now.
However, I noticed (I could/should have spotted this already in #19330) that the size taken at the end is the size of
I do acknowledge that this is somewhat an annoying requirement in the specification as it makes the reverse calculation when mining to a specific PoW target a bit more complicated (e.g. need to recalculate size each time if you want your PoW target 100% exact).