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

fix Best Difficulty can not be > 4.29G #155

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

MoellerDi
Copy link
Contributor

best_nonce_diff used to be defined as uint32_t (max value 4294967295). IMHO it should (at least) be defined as double otherwise Bitaxe UI might show a far too low 'Best Difficulty' value (can not be > 4.29G (uint32_t max value)).

I noticed this as public-pool is showing "Your Best Difficulty: 15.46G" but Bitaxe UI claims just "Best Difficulty: 4.29G"

@benjamin-wilson
Copy link
Collaborator

I think it would make more sense for this to be a uint64_t as that's what is stored in NVS, we also don't need the precision for display. Good catch though!

@MoellerDi
Copy link
Contributor Author

@benjamin-wilson, thanks for your comment. I agree with you and PR is updated.

@benjamin-wilson benjamin-wilson merged commit 6283a68 into skot:master Mar 29, 2024
1 check passed
@MoellerDi MoellerDi deleted the PR_fix_best_nonce_diff branch March 29, 2024 14:42
aaron3481 pushed a commit to aaron3481/ESP-Miner that referenced this pull request Jun 11, 2024
* fix best_nonce_diff, uint32_t is too small

* best_nonce_diff as uint64_t
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