Bitcoin Forum
June 11, 2024, 04:12:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 2016 blocks = 14 days = 10 minutes per block - or not?  (Read 1352 times)
shamoons (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 100



View Profile
October 05, 2012, 09:58:12 PM
 #1

So I was wondering and perhaps the technical forum is a better place for this discussion. But the network self-adjusts every 2016 blocks to set the difficulty to be equal to what it should have been to ensure that 2016 blocks took 14 days. So if there's more network power in a 2-week period, the 2016 blocks will take less than 14 days. The network will then adjust it so that the difficulty is harder so that the next 2016 blocks (at the current network power) takes 14 days. But the problem is that we already had the first set of 2016 blocks take less than 14 days. So in time, the average time to find a block is less than 10 minutes.

Am I missing something?
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
October 05, 2012, 10:00:23 PM
 #2

Block finding is random. I have seen blocks being found within seconds of each other. It all depends on luck. Sometimes due to luck, blocks are found faster even if the difficulty corresponds to the network computational power.
And sometimes, again due to luck, some blocks take a while(20-30 minutes).

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
MysteryMiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 1042


Death to enemies!


View Profile
October 05, 2012, 10:01:02 PM
 #3

You are not missing something. But if network power decreases on average it takes longer than 14 days to find 2016 blocks. There also is a small variation called luck.

bc1q59y5jp2rrwgxuekc8kjk6s8k2es73uawprre4j
shamoons (OP)
Full Member
***
Offline Offline

Activity: 165
Merit: 100



View Profile
October 05, 2012, 10:02:03 PM
 #4

But it's targeted to be 10 minutes. The current adjustment algorithm (as I understand it), will almost guarantee that it will be targeted to less than 10 minutes.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
October 05, 2012, 10:03:29 PM
 #5

It tries to, but as it has been pointed out. Luck is the variation. There's just no real way to control block finding so it's exactly 10 minutes. It could be more, it could be less.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
MysteryMiner
Legendary
*
Offline Offline

Activity: 1498
Merit: 1042


Death to enemies!


View Profile
October 05, 2012, 10:07:39 PM
 #6

But it's targeted to be 10 minutes. The current adjustment algorithm (as I understand it), will almost guarantee that it will be targeted to less than 10 minutes.
It "guarantees" it because the network power is increasing all the time. If network total power decreases all the time, it will "almost guarantee" that it will take more than 10 minutes on average.

bc1q59y5jp2rrwgxuekc8kjk6s8k2es73uawprre4j
Buffer Overflow
Legendary
*
Offline Offline

Activity: 1652
Merit: 1015



View Profile
October 05, 2012, 10:12:41 PM
 #7

The 10 minute block is only a guideline. It gives the system a ball-park figure to try to aim for in the next 2016 blocks when the difficulty adjusts.

Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1178


View Profile WWW
October 05, 2012, 10:57:11 PM
 #8

If the network hashing power is constantly increasing at 10% per 2016 blocks, those blocks will on average take 10% less time than 10 minutes, in the long run.

If this is what you're saying, yes.

I do Bitcoin stuff.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
October 06, 2012, 12:39:19 AM
 #9

If the network hashing power is constantly increasing at 10% per 2016 blocks, those blocks will on average take 10% less time than 10 minutes, in the long run.

If this is what you're saying, yes.

To quantify that.

At the end of October 5, 2011 (UTC), the block height was 148,231 blocks.
At the end of October 5, 2012 (UTC), the block height was 201,987 blocks.

So in the past year, there was 53,756 blocks.
This was a leap year so there were 366 days.
So block generation was at the rate of 146.87 blocks per day.
There are 1,440 minutes in a day.

So each block took, on average, 9.8 minutes over the past year.

This is the hash rate (green) and difficulty levels (red) over the past year [edit: eleven months].



 - http://bitcoin.sipa.be

As you can see, even with the difficulty rate rising more than 100% over the past year, it wasn't enough to have a huge effect and blocks were still yielded pretty close to the ten minutes per-block target.

[Update:
Here's some raw data from the difficulty adjustment periods with a column seconds populated (2011 and 2012) so the computation can be made to tell how many minutes each block took for each difficulty level.
 - https://docs.google.com/spreadsheet/ccc?key=0AmcTCtjBoRWUdHVRMHpqWUJValI1RlZiaEtCT1RrQmc ]

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!