Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: MoonShadow on October 08, 2010, 07:20:57 PM



Title: Difficulty, What is it?
Post by: MoonShadow on October 08, 2010, 07:20:57 PM
Can someone explain the difficulty to me?  Is it a linear or log unit?  I know that there is a minimum difficulty of 1, but what does a difficulty of "1" even mean?  Is there a maximum difficulty?


Title: Re: Difficulty, What is it?
Post by: jgarzik on October 08, 2010, 07:36:19 PM
Can someone explain the difficulty to me?  Is it a linear or log unit?  I know that there is a minimum difficulty of 1, but what does a difficulty of "1" even mean?  Is there a maximum difficulty?

According to the code,

    difficulty = minimum_best_target / current_best_target

bitcoin miners' proof of work is searching for a hash whose numeric value is below the current target.

These links have some more info:

http://www.bitcoin.org/wiki/doku.php?id=difficulty
http://www.bitcoin.org/wiki/doku.php?id=target


Title: Re: Difficulty, What is it?
Post by: FreeMoney on October 08, 2010, 08:13:31 PM
Can someone explain the difficulty to me?  Is it a linear or log unit?  I know that there is a minimum difficulty of 1, but what does a difficulty of "1" even mean?  Is there a maximum difficulty?

Linear. It takes the same power DIFFICULTY times longer to generate a block on average than when difficulty was at 1.


Title: Re: Difficulty, What is it?
Post by: eurekafag on October 09, 2010, 09:48:46 AM
The easiest explanation: if you multiply the current difficulty by 2^32, you'll get the average number of hashes the network should solve to generate a valid block. If you divide this number by your hash speed you'll get the time required to generate a block by yourself.