-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid using floats when generating shares and added PoW validati…
…on (#24) Description --- When calculated shares floats were used, but since float rounding can be different across machines and systems, added integers only to avoid different shares generated. Motivation and Context --- How Has This Been Tested? --- By running the normal mining process through p2pool (using 2 miners and 2 p2pool instances). What process can a PR reviewer use to test or verify this change? --- By running the normal mining process through p2pool (using 2 miners and 2 p2pool instances) and everything seems to work as before. Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> <!-- BREAKING CHANGE: Description what the user should do, e.g. delete a database, resync the chain -->
- Loading branch information
Showing
2 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters