Bitcoin Forum
December 12, 2024, 02:11:44 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Difference between mining software "diff" and bitcoin "target"?  (Read 1086 times)
skeeterskeeter (OP)
Full Member
***
Offline Offline

Activity: 160
Merit: 100


View Profile
December 06, 2013, 12:47:13 AM
 #1

I am trying to follow through the steps in the link below to find the average generation time.
https://en.bitcoin.it/wiki/Generation_Calculator
 
  • Get the current target.
  • Divide by 115792089237316195423570985008687907853269984665640564039457584007913129639935, which is the maximum value of a 256-bit number. You now have the probability of a single hash solving a block.
  • Take the reciprocal of the probability to get the average number of hashes to solve a block.
  • Divide the average number of hashes by your hash/s (not khash/s) to get the average number of seconds required to solve a block.

So the current target is given here, http://blockexplorer.com/q/hextarget, in hexadecimal format. Converted to base ten it is

38110290672195532365762668664552282566878756832852091863040


If you use this number in the calculation above it comes out to be right, if you use the difficulty you get a number that is hugely off.

Why is this not the same value are the one reported in mining software, such as CGMiner, it reports 707M. All websites also list it as 707M and not the number above.

Is there a way to go from 707408283 (Bitcoin difficulty) to 38110290672195532365762668664552282566878756832852091863040 (Bitcoin target)? Are those the proper names for the two?
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
December 06, 2013, 12:58:46 AM
 #2

difficulty * 2^32 = average number of hashes required to solve a block.

Both values express the same concept in different form.

difficulty = 2^256 / (target * 2^32)
 
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
December 06, 2013, 04:47:10 AM
Last edit: December 06, 2013, 04:57:30 AM by Remember remember the 5th of November
 #3

difficulty * 2^32 = average number of hashes required to solve a block.

Both values express the same concept in different form.

difficulty = 2^256 / (target * 2^32)
And how do you combine this with your speed, block reward to get the avg reward you'd earn per day?

Quote
Why is this not the same value are the one reported in mining software, such as CGMiner, it reports 707M. All websites also list it as 707M and not the number above.

Because you need to divide the maximum target by the current target.

So 00000000FFFF0000000000000000000000000000000000000000000000000000 / 0000000000000006124200000000000000000000000000000000000000000000 = 707 408 283.

https://en.bitcoin.it/wiki/Target
https://en.bitcoin.it/wiki/Difficulty

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
runlinux
Hero Member
*****
Offline Offline

Activity: 566
Merit: 500



View Profile WWW
December 06, 2013, 05:19:29 AM
 #4

(blockReward/difficulty)*((mhs*1000000*86400)/(POWER(2,48)/65535)) = btc / day based on pps

Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
December 06, 2013, 05:45:31 AM
 #5

(blockReward/difficulty)*((mhs*1000000*86400)/(POWER(2,48)/65535)) = btc / day based on pps
Oh wow, thanks! If you can post the one for proportional too, you'd be golden!

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
December 06, 2013, 12:46:44 PM
 #6

difficulty * 2^32 = average number of hashes required to solve a block.

Both values express the same concept in different form.

difficulty = 2^256 / (target * 2^32)
 

Why not 2^31? Base Bitcoin difficulty is 2^32, so 2^(32-1) should be required in average.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
December 06, 2013, 03:44:48 PM
 #7

If the odds of rolling a six are 1 in 6 then how many rolls on average will it take to roll a six.
a) Six
b) Thee
c) One because I am lucky. Come on lucky six.
d) I don't see the connection
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
December 06, 2013, 04:07:36 PM
 #8

If the odds of rolling a six are 1 in 6 then how many rolls on average will it take to roll a six.
a) Six
b) Thee
c) One because I am lucky. Come on lucky six.
d) I don't see the connection

b)
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
December 06, 2013, 04:11:44 PM
 #9

That is incorrect, thank you for trying but it does indicate the reason for your incorrect claim above.

Hint: the reason why I picked dice in the example is you can test it yourself.  Just be sure to roll a lot of dice.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2142
Merit: 1010

Newbie


View Profile
December 06, 2013, 04:18:15 PM
 #10

That is incorrect, thank you for trying but it does indicate the reason for your incorrect claim above.

Hint: the reason why I picked dice in the example is you can test it yourself.  Just be sure to roll a lot of dice.

Ah, right. I thought that if I rolled "3" then I got a die with "1", "2", "4", "5" and "6" (without "3"). With mining this doesn't work.
Schleicher
Hero Member
*****
Offline Offline

Activity: 675
Merit: 514



View Profile
December 06, 2013, 04:20:51 PM
 #11

Actually, the odds of rolling a 6 with 6 rolls is 66.5%

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!