Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: gateway on July 30, 2013, 09:36:10 PM



Title: Computing guestimated ROI Change from blocks
Post by: gateway on July 30, 2013, 09:36:10 PM
I'm wanting to work on spitting out some data into a table of current block, block hight, and guestimated diff change.. anyone know of a formula or that could be used to calculate this based upon of course best guess.

Right now I have this data at least getting spit out:

Current Block = 249313
Current Difficulty = 31256960.727769
Current Block Hash = 000000000000006c911cddd6813dd4c680c6b8f3915c853992e1ca15eaa36a3d
Current Block Hash Time = 1375219808 or July 30, 2013, 2:30 pm
Last Block at current Difficulty = 249983
Next Difficulty at Block at = 249984
Next Difficulty in 671
Next Difficulity in 4 days 15 hours 50 minutes

any advice?


Title: Re: Computing guestimated ROI Change from blocks
Post by: Rannasha on July 30, 2013, 09:53:32 PM
The most basic estimate is to look at the amount of blocks mined since the last diff-change and the elapsed time. Divide 10 by the average time per block (in minutes) since the last diff-change and multiply the result with the current difficulty and you obtain an estimate for the next difficulty. Since the network actually computes the new difficulty this way when a change occurs, this estimate gets very accurate close to a change. But early in a cycle, it can swing wildly.


Title: Re: Computing guestimated ROI Change from blocks
Post by: gateway on July 31, 2013, 08:18:24 PM
The most basic estimate is to look at the amount of blocks mined since the last diff-change and the elapsed time. Divide 10 by the average time per block (in minutes) since the last diff-change and multiply the result with the current difficulty and you obtain an estimate for the next difficulty. Since the network actually computes the new difficulty this way when a change occurs, this estimate gets very accurate close to a change. But early in a cycle, it can swing wildly.

hmm thanks.. lookign into that.. im seeing something weird on a test recent blocks timestamp diff was a negative value how is that so?


Title: Re: Computing guestimated ROI Change from blocks
Post by: kostagr33k on August 04, 2013, 08:56:26 PM
I actually was looking into this last night and came upon your post.

Will you be releasing this code by any chance?

Kosta