Bitcoin Forum
May 07, 2024, 02:22:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Duration of new block to confirm and include transactions  (Read 182 times)
Cookdata (OP)
Hero Member
*****
Offline Offline

Activity: 938
Merit: 876


Not Your Keys, Not Your Bitcoin


View Profile
May 29, 2022, 06:37:39 PM
Merited by hugeblack (4)
 #1

I learnt that the time to create a new block in bitcoin takes an average time of 10 minutes but I don't understand what happened yesterday when I carried out a transaction.

I sent some BTC and my transaction was successfully included in block 738344 and it was confirmed on May 29, 2022, 12:31 AM UTC.
The previous block 738344 before my transaction was first confirmed on May 29, 2022, 12:30 AM UTC which was just 1 minute apart but the next block 738345 after my transaction was first confirmed on May 29, 2022, 12:53 AM UTC and the difference between that and mine was 22 minute, why is it like that?

If 6 blocks will take 1 hour with an average of 10 minutes for first confirmation, what will happen when this happens, is this an anomaly because other blocks are similar to this with time variation or there is no standard duration for new blocks.

1715048563
Hero Member
*
Offline Offline

Posts: 1715048563

View Profile Personal Message (Offline)

Ignore
1715048563
Reply with quote  #2

1715048563
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
May 29, 2022, 06:47:32 PM
Merited by vapourminer (2)
 #2

The target tries to maintain there being anew block every 10 minutes. People who've actually done the maths say its between 8 or 9 minutes.

There are a few things faced here:
1. Block finding is based off random numbers and the target can be easy or hard to get (essentially, a miner that mins a block in 1-2 minutes just got lucky with their random number generator for the nonce).
2. Hash rate mostly increases as doesn't decrease much, every block mined when the previous target was set was set on an average of that - this will add to that as well as miners might also time when to turn new devices on to be nearer the time the target gets reset so they can get a higher reward/more blocks.

Charles-Tim
Legendary
*
Offline Offline

Activity: 1540
Merit: 4849



View Profile
May 29, 2022, 07:31:32 PM
 #3

A bitcoin transaction can take less than 2 minutes, it can take 3 minutes, it can take 9, 10, 15 or more or less minutes, it can even take 30 or more or less minutes, but taking 10 minutes on average.

If mining hashrates increase before difficulty adjustment, you can see more of blocks getting mined before 10 minutes and transaction in the process also getting confirmed.

If the mining hashrates decrease before the difficulty adjustment, there will be many transactions getting confirmed after 10 minutes.

Mining difficulty is adjusted every 2016 blocks, that should take approximately 2 weeks.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4166


View Profile
May 29, 2022, 10:31:21 PM
Merited by hugeblack (4), ABCbits (3), vapourminer (2), stompix (2)
 #4

The block frequency follows a Poisson distribution and the time between the block follows an exponential distribution. This means that while the average block time is 10 minutes, the probability of the blocks being shorter than 1 minute is 9.516%, which is still fairly significant. The reason for this is because the golden nonce (or the parameters that corresponds to a valid block) is found at random, and hence a random variable.

Though an increase in the hashrate can result in an increased probability (and vice versa), the main factor is just that the probability of this happening is relatively high.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
May 30, 2022, 02:38:23 AM
 #5

I learnt that the time to create a new block in bitcoin takes an average time of 10 minutes but I don't understand what happened yesterday when I carried out a transaction.
...
If 6 blocks will take 1 hour with an average of 10 minutes for first confirmation, what will happen when this happens, is this an anomaly because other blocks are similar to this with time variation or there is no standard duration for new blocks.

The time between blocks is random, but the average is 10 minutes. The average for 6 blocks is one hour. The average for 144 blocks is 1 day.

The difficulty is automatically adjusted every 2016 blocks to keep the average at 10 minutes (based on how quickly previous blocks were added).

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


View Profile
May 30, 2022, 02:57:01 AM
 #6

I learnt that the time to create a new block in bitcoin takes an average time of 10 minutes but I don't understand what happened yesterday when I carried out a transaction.
To fully understand it, you need to learn at least these two things:

As a summary, the "target" is a number which is set to be higher or lower to maintain the 10-minute block average.
Miners are trying to get a hash with lower value than the target, each try can be the winning block, be it within a minute, ten (on average) or even an hour, it's unpredictable.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10550



View Profile
May 30, 2022, 02:57:13 AM
 #7

I learnt that the time to create a new block in bitcoin takes an average time of 10 minutes
It is mining a new block that takes 10 minutes on average not creation of a new block.

Mining is a process that is very similar to brute forcing, you have to compute a lot of hashes until you find the "correct" one. Just like brute forcing a password you start from somewhere and the first try may be the correct one (hence finding the next block in matter of seconds) or you may continue trying many passwords until you eventually find the correct one.

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch10.asciidoc#proof-of-work-algorithm

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6730


bitcoincleanup.com / bitmixlist.org


View Profile WWW
May 30, 2022, 07:18:54 AM
Merited by ABCbits (1)
 #8

Mining difficulty is adjusted every 2016 blocks, that should take approximately 2 weeks.


Actually, the epoch length will be much less than 2 weeks if there is a sudden increase in hashing power i.e. decrease in confirm time, and vice versa (the epoch will last much longer if signiicant hashpower suddenly goes offline during the epoch. This is what usually happens because miners generally don't leave vast quantities of miners idle).

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
hosseinimr93
Legendary
*
Offline Offline

Activity: 2394
Merit: 5235



View Profile
May 30, 2022, 12:03:39 PM
 #9

8-9 minutes? Are you talking about mean block time of all-time or certain time period? I'm certain it's 9.4 minutes during genesis block until 2018.
I just made a simple calculation.
Till now 738567 blocks have been mined. These blocks have been mined in 4894 days, 18 hours, 40 minutes.
The overall average block time has been 9 minutes and 33 seconds.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18510


View Profile
May 30, 2022, 12:49:36 PM
 #10

You can see the average block time for every 2016 block retargeting period since the genesis block here: https://btc.com/stats/diff

And you can see the stats for the current retargeting period using this site: https://www.bitrawr.com/difficulty-estimator. If you convert the current pace from a percentage to a fraction and then divide 600 seconds by this number, it will tell you the current average block time. For example, at time of writing the current pace is 101.3413%. 600/1.0134 = 592 seconds. So the current average block time is 9 minutes and 52 seconds.
stompix
Legendary
*
Offline Offline

Activity: 2884
Merit: 6304


Blackjack.fun


View Profile
May 30, 2022, 01:37:25 PM
 #11

I just made a simple calculation.
Till now 738567 blocks have been mined. These blocks have been mined in 4894 days, 18 hours, 40 minutes.
The overall average block time has been 9 minutes and 33 seconds.

This is comparable to the jumps the price has made, we've seen it going 10000x time up but that doesn't mean we're going to see that happening again, same with the hashrate growing, when ASICs hit the market, from 2013 till late 2014 the average was well below 9 minutes, with a lot of periods ending with even 6 minutes and a half on average.
That won't be possible anymore unless you also have a large shutdown before some are getting plugged in again, to keep a 5% increase each period you will need right now about 100k asics, and each time this requirement will grow exponentially.

As  o_e_l_e_o mentioned, break it down to 100k or yearly batches and you're going to see that the deviation is going down



.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!