-
Notifications
You must be signed in to change notification settings - Fork 2
Minimum viable PoW change #5
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
base: 0.14-uasf_backup_hardfork
Are you sure you want to change the base?
Minimum viable PoW change #5
Conversation
…h the same return
58446fe to
b06dbdc
Compare
b06dbdc to
3aae881
Compare
3aae881 to
65d8845
Compare
| int64_t nTryTime; | ||
| ++nMinTime; | ||
| while (nMinTime < nMaxTime) { | ||
| nTryTime = nMinTime + ((nMaxTime - nMinTime) / 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) May be more readable as nTryTime = (nMinTime + nMaxTime) / 2;
| return pindexLast->nBits; | ||
| } else { | ||
| // Go back by what we want to be 14 days worth of blocks | ||
| int nHeightFirst = pindexLast->nHeight - (params.DifficultyAdjustmentInterval()-1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit) Would this be more readable as pindexLast->nHeight + 1 - params.DifficultyAdjustmentInterval() or is it intentionally considering just 2015 of the 2016 blocks?
Messed up PR #1