Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: MoonShadow on August 29, 2010, 10:20:47 PM



Title: Difficulty at 623.38695987
Post by: MoonShadow on August 29, 2010, 10:20:47 PM
Looks like the difficulty took another big jump up, and since the average blocks-per-hour is still above 6, could the max difficulty adjustment rule been hit?  I know that the difficulty is limited to "a factor of four" but I don't know exactly what that means in practice, nor how that might be reflected in the adjustments.

Also, what does this mean for the size of the bitcoin network?  Can a relative number of 'average' cpu's be estimated from this data?


Title: Re: Difficulty at 623.38695987
Post by: theymos on August 29, 2010, 10:44:05 PM
The difficulty can't increase or decrease by more than a factor of four in a single retarget:
Code:
// Limit adjustment step
    int64 nActualTimespan = pindexLast->GetBlockTime() - pindexFirst->GetBlockTime();
    printf("  nActualTimespan = %"PRI64d"  before bounds\n", nActualTimespan);
    if (nActualTimespan < nTargetTimespan/4)
        nActualTimespan = nTargetTimespan/4;
    if (nActualTimespan > nTargetTimespan*4)
        nActualTimespan = nTargetTimespan*4;

Total network power right now is nearly 5 billion hashes per second.

So total network power, in hash/sec, is then
(difficulty * 2^32) / 600
Where 600 is a smoothed approximation of last-block-interval-in-seconds.


Title: Re: Difficulty at 623.38695987
Post by: FreeMoney on August 30, 2010, 12:45:21 AM
Looks like the difficulty took another big jump up, and since the average blocks-per-hour is still above 6, could the max difficulty adjustment rule been hit?  I know that the difficulty is limited to "a factor of four" but I don't know exactly what that means in practice, nor how that might be reflected in the adjustments.

Also, what does this mean for the size of the bitcoin network?  Can a relative number of 'average' cpu's be estimated from this data?

No, since we are increasing speed the speed at the end of the period is higher than the average power over the period which is what is used to determine the new difficulty. So even at the beggining of the new period we are faster than 6/hr by the difference of average and final speed of the last periodLook on the statistix page, we've been around 8 for over half a year, it's because we're increasing the whole time.