Skip to content

Conversation

@luke-jr
Copy link

@luke-jr luke-jr commented Jul 4, 2017

Messed up PR #1

@luke-jr luke-jr force-pushed the 0.14-bak_hf-minimum branch 6 times, most recently from 58446fe to b06dbdc Compare July 8, 2017 23:12
@luke-jr luke-jr force-pushed the 0.14-bak_hf-minimum branch from b06dbdc to 3aae881 Compare July 9, 2017 05:00
int64_t nTryTime;
++nMinTime;
while (nMinTime < nMaxTime) {
nTryTime = nMinTime + ((nMaxTime - nMinTime) / 2);

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);

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?

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