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

Get hash boundary from difficulty #178

Closed
AndreaLanfranchi opened this issue Jul 24, 2021 · 3 comments
Closed

Get hash boundary from difficulty #178

AndreaLanfranchi opened this issue Jul 24, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@AndreaLanfranchi
Copy link

A nice to have feature would be to have the computation of hash256 boundary from the difficulty value as specified in block header

@chfast
Copy link
Owner

chfast commented Aug 7, 2021

Doesn't this require uint256 arithmetic?

@chfast chfast added the enhancement New feature or request label Sep 30, 2021
@chfast
Copy link
Owner

chfast commented Sep 30, 2021

This requires division. We could copy code from intx to provide such feature, but this is a lot of complex code to copy and write Knuth division "from scratch".

However, I have alternative solution which may be even better: #185.

@chfast
Copy link
Owner

chfast commented Oct 27, 2021

The #191 contains an experimental implementation (done for testing). But #195 is preferred solution.

@chfast chfast closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants