Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Make luck calculation configurable #168

Open
ericecook opened this issue Nov 17, 2014 · 0 comments
Open

Make luck calculation configurable #168

ericecook opened this issue Nov 17, 2014 · 0 comments

Comments

@ericecook
Copy link
Member

Right now we calculate it the inverse of the was most pools do. Since it is relatively simple to switch this making it configurable might be nice

We currently calculate it as

(block.difficulty * (2 ** 32) / block.shares_to_solve or 1 * avg_hashes_per_share) * 100

Most pools do

(block.shares_to_solve or 1 * avg_hashes_per_share / block.difficulty * (2 ** 32)) * 100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant