Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pool: Use bitlen for calculating iterations. #360

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Sep 14, 2023

This switches the calculation for the number of iterations to use the pow limit bit length as opposed to a less accurate round trip through a log2 float64 approximation.

Copy link
Member

@jholdstock jholdstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also instances of this which can be updated in difficulty.go and client_test.go.

This switches the calculation for the number of iterations to use the
pow limit bit length as opposed to a less accurate round trip through a
log2 float64 approximation.
@davecgh
Copy link
Member Author

davecgh commented Sep 14, 2023

There are also instances of this which can be updated in difficulty.go and client_test.go.

Updated.

@jholdstock jholdstock merged commit f2867ac into decred:master Sep 14, 2023
2 checks passed
@davecgh davecgh deleted the pool_bitlen_iteration_count branch September 14, 2023 10:07
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.

2 participants