Bitcoin Forum
April 19, 2024, 11:39:45 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Help] How far in terms of time do two qualifying hashes?  (Read 777 times)
smoothie (OP)
Legendary
*
Offline Offline

Activity: 2492
Merit: 1473


LEALANA Bitcoin Grim Reaper


View Profile
August 15, 2011, 09:19:59 PM
 #1

How close/soon can a block be generated after a valid block has been generated and put into the blockchain?

Is it 1 second? 2 seconds? 3 seconds? more?

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

            ,╓p@@███████@╗╖,           
        ,p████████████████████N,       
      d█████████████████████████b     
    d██████████████████████████████æ   
  ,████²█████████████████████████████, 
 ,█████  ╙████████████████████╨  █████y
 ██████    `████████████████`    ██████
║██████       Ñ███████████`      ███████
███████         ╩██████Ñ         ███████
███████    ▐▄     ²██╩     a▌    ███████
╢██████    ▐▓█▄          ▄█▓▌    ███████
 ██████    ▐▓▓▓▓▌,     ▄█▓▓▓▌    ██████─
           ▐▓▓▓▓▓▓█,,▄▓▓▓▓▓▓▌          
           ▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▌          
    ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓─  
     ²▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╩    
        ▀▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▀       
           ²▀▀▓▓▓▓▓▓▓▓▓▓▓▓▀▀`          
                   ²²²                 
███████████████████████████████████████

. ★☆ WWW.LEALANA.COM        My PGP fingerprint is A764D833.                  History of Monero development Visualization ★☆ .
LEALANA BITCOIN GRIM REAPER SILVER COINS.
 
1713569985
Hero Member
*
Offline Offline

Posts: 1713569985

View Profile Personal Message (Offline)

Ignore
1713569985
Reply with quote  #2

1713569985
Report to moderator
1713569985
Hero Member
*
Offline Offline

Posts: 1713569985

View Profile Personal Message (Offline)

Ignore
1713569985
Reply with quote  #2

1713569985
Report to moderator
1713569985
Hero Member
*
Offline Offline

Posts: 1713569985

View Profile Personal Message (Offline)

Ignore
1713569985
Reply with quote  #2

1713569985
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713569985
Hero Member
*
Offline Offline

Posts: 1713569985

View Profile Personal Message (Offline)

Ignore
1713569985
Reply with quote  #2

1713569985
Report to moderator
1713569985
Hero Member
*
Offline Offline

Posts: 1713569985

View Profile Personal Message (Offline)

Ignore
1713569985
Reply with quote  #2

1713569985
Report to moderator
1713569985
Hero Member
*
Offline Offline

Posts: 1713569985

View Profile Personal Message (Offline)

Ignore
1713569985
Reply with quote  #2

1713569985
Report to moderator
bcpokey
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500



View Profile
August 15, 2011, 11:12:49 PM
 #2

Is there a limit? As far as I understand it, a qualifying hash is a qualifying hash, the only possible problem I could see would be in ordering the submission if they came in almost simultaneously, and maybe at the end of a difficulty period if one would be the last block of the difficulty and the next fell into a higher difficulty period.
SleeperUnit
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
August 16, 2011, 01:03:56 AM
 #3

... the only possible problem I could see would be in ordering the submission if they came in almost simultaneously, and maybe at the end of a difficulty period if one would be the last block of the difficulty and the next fell into a higher difficulty period.

There is no ordering problem. The second block must use the first block as an input. If it doesn't then it will be considered invalid. In fact, this is typically how invalid blocks are made.

And yes, if the second block comes after a difficulty increase then it must take that into consideration too.
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
August 16, 2011, 05:38:39 AM
 #4

There is no ordering problem. The second block must use the first block as an input. If it doesn't then it will be considered invalid.

It's actually the next block to be found after that that determines which is valid.  Until then, they are "tied".

Say you have Block 0 that was found 5 minutes ago.

1. Block 1 is found and points at Block 0 as the previous block.
2. A split second later, Block 2 is found somewhere else in the p2p network that hasn't heard about Block 1 yet and it also points at Block 0 as the previous block.

Both chains are the same length and it's not until Block 3 is found that one of the chains "wins" and becomes the valid chain.

3. Ten minutes later, a miner finds Block 3 which will point at either Block 1 or Block 2 as the previous block (depending on which of the two blocks the miner was notified about first via the p2p network).  If it points at Block 1, then Block 2 is no longer part of the longest chain and is "invalid".  Or if it points at Block 2, then block 1 becomes the "invalid" block.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
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!