Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Make python run faster#1

Open
RobinJadoul wants to merge 1 commit intobalsn:masterfrom
RobinJadoul:faster-python
Open

Make python run faster#1
RobinJadoul wants to merge 1 commit intobalsn:masterfrom
RobinJadoul:faster-python

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