Skip to content

Use exponential payout for work#71

Closed
machuPikacchuBTC wants to merge 1 commit intomasterfrom
mp.work
Closed

Use exponential payout for work#71
machuPikacchuBTC wants to merge 1 commit intomasterfrom
mp.work

Conversation

@machuPikacchuBTC
Copy link
Collaborator

Closes #66

The difficulty of finding a valid proof of work is exponential in the leading 0s so the payout should compensate accordingly. Previously, as the issue describes, we had a linear payout scheme which is heavily biased towards easy shares (Bitaxes rejoice!). This PR brings the payout in line with the mining difficulty.

The min and max values are hardcoded for now while we figure out the best way to coordinate configuration. I also added some simple tests. I created a new function called calculate_work_in_range to make this backwards compatible with the code as it is for now.

@vnprc
Copy link
Owner

vnprc commented Sep 25, 2025

approved by cherry-picking directly into master

@vnprc vnprc closed this Sep 25, 2025
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.

Fix ehash units

2 participants