Skip to content

Conversation

@RobinJadoul
Copy link

This avoids building up an entire string of bits, in favor of just checking that the first 8 bytes (in big endian order) are less than 2^(64 - difficulty).
This of course breaks for difficulty >= 64, but that seems like a rather unlikely choice of PoW difficulty anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant