Bitcoin Forum
May 14, 2024, 04:42:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Computation for determining time/block_creation?  (Read 916 times)
joecascio (OP)
Full Member
***
Offline Offline

Activity: 137
Merit: 100

Semi-retired software developer, tech consultant


View Profile WWW
October 11, 2012, 12:14:00 AM
 #1

I think I know how to figure out the average time for a miner to produce a block (ie, generate a compliant hash), but wanted to ask the community to be sure.

If you go to blockexplorer.com and get the current probability http://blockexplorer.com/q/probability and invert this, it should be the average number of hashes required to produce a block. So at this moment the probability is:

0.0000000000000000762211067916254703114020685461582615971

Inverting it (ie, dividing into 1) gives

13119725520830032.0

Dividing this by the hashes/sec of any given miner should give you the number of seconds/block. For a btcfpga 27Ghash/sec this is:

13119725520830032.0 / 27e9 = 485915.76003074192

Dividing this by the number of secs in a day gives average days to produce a block

485915.76003074192 / (60*60*24) = 5.6240250003558092

So in a formula, it would be:

((1/probability)/minerHashesPerSec)/(secsPerDay) = daysPerBlock

Does this seem right?

Thanks



Joe Cascio
Python/Django & Android developer
Twitter: @joecascio
meebs
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500



View Profile
October 11, 2012, 02:44:06 AM
 #2

1 share = ~4.3 billion hashes
currently difficulty = avg # of shares needed to find a block


              ▄▄▄█████████████▄▄▄
           ▄████████▀▀▀▀▀▀▀████████▄
        ▄██████▀▀             ▀▀██████▄
      ▄█████▀▀                    ▀▀█████▄
     █████▀                          ▀█████
    ████▀          ▄▄███████▄▄         ▀████
   ████▌        ▄██▀▀▀    ▀▀▀██▄        ▐████
  ████▌       ▄██▀            ▀██▄       ▐████
 ▐████       ██▀   ▄▄█▀▀▀█▄▄    ▀██       ████▌
 ████▌      ▐█▌   █▀  ▄▄   ▀▀             ▐████
▐████       ██  █▌  █▌ █████████████      ████▌
▐████       ██  ▐█  ▐█                     ████▌
▐████       ██  █▌  █▌ █████████████      ████▌
 ████▌      ▐█▌   █▄  ▀▀   ▄▄    ██▀      ▐████
 ▐████       ██▄   ▀▀█▄▄▄█▀▀    ██▌       ████▌
  █████       ▀██▄            ▄██▀       █████
   █████        ▀██▄▄▄    ▄▄▄██▀        █████
    █████          ▀▀███████▀▀         █████
     █████▄                          ▄█████
      ▀█████▄▄                    ▄▄█████▀
        ▀██████▄▄             ▄▄██████▀
           ▀████████▄▄▄▄▄▄▄████████▀
              ▀▀▀█████████████▀▀▀
Global Cryptocurrency
          ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

  DECENTRALISING PRODUCTION, LOGISTICS AND PAYMENT 
                ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬   3D SERVICE      32 BAY     GCC WEBWALLET
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

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!