Bitcoin Forum
May 02, 2024, 05:49:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: This artical needs fixing on the bitcoin wiki  (Read 801 times)
FreshJR (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10



View Profile
April 05, 2013, 05:16:44 PM
 #1

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.

***(I HAD AN ISSUE WITH THESE INSTRUCTIONS because the current target is not a decimal number)
*** we need a step to convert the hexadecimal target to a decimal number
*** the target might not even be a hexadecimal value because when i converted it, and did the math I didnt get the current difficulty


When looking at steps 1-3 they say:

Step 1 is get current target
Step 2 is divided current target by max target
Step 3 is take reciprocal

Why not say:

Step 1 - get max target.  Also, instead of writing out that number write out 2^256 for brevity.
Step 2 - get current target.  
Step 3 - convert the current target from hexadec to decimal.
Step 4  - divide step 1 by step 2 (max target/current target), which is equivalent to the average number of hashes needed to solve a block and is also the current difficulty.
Step 5 - 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.

(Additional Info) - The recipricol of step 4 is the probability of a single hash solving a block



1714672150
Hero Member
*
Offline Offline

Posts: 1714672150

View Profile Personal Message (Offline)

Ignore
1714672150
Reply with quote  #2

1714672150
Report to moderator
1714672150
Hero Member
*
Offline Offline

Posts: 1714672150

View Profile Personal Message (Offline)

Ignore
1714672150
Reply with quote  #2

1714672150
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714672150
Hero Member
*
Offline Offline

Posts: 1714672150

View Profile Personal Message (Offline)

Ignore
1714672150
Reply with quote  #2

1714672150
Report to moderator
1714672150
Hero Member
*
Offline Offline

Posts: 1714672150

View Profile Personal Message (Offline)

Ignore
1714672150
Reply with quote  #2

1714672150
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
April 05, 2013, 07:49:58 PM
 #2

What makes you think that this procedure returns the current difficulty?  The page says pretty clearly that it returns the average number of hashes required to solve a block.

Or are you just forgetting to divide by 232 to convert hashes to difficulty?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
FreshJR (OP)
Member
**
Offline Offline

Activity: 65
Merit: 10



View Profile
April 07, 2013, 07:34:57 PM
 #3

What makes you think that this procedure returns the current difficulty?  The page says pretty clearly that it returns the average number of hashes required to solve a block.

Or are you just forgetting to divide by 232 to convert hashes to difficulty?

Because this page defined difficulty as max target/current target

https://en.bitcoin.it/wiki/Difficulty
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!