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: Calculate share weights dynamically. #403

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Oct 5, 2023

This calculates the share weights in the global share weights map dynamically based on the entires in the map of the miner hash rates instead of hard-coding them to manually calculated values that can easily become outdated when the hash rates are updated.

pool/share.go Outdated Show resolved Hide resolved
This calculates the share weights in the global share weights map
dynamically based on the entires in the map of the miner hash rates
instead of hard-coding them to manually calculated values that can
easily become outdated when the hash rates are updated.
@jholdstock jholdstock merged commit 217ceac into decred:master Oct 10, 2023
2 checks passed
@davecgh davecgh deleted the pool_dynamic_share_weights branch October 10, 2023 13:47
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