Bitcoin Forum
May 11, 2024, 01:27:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: DASH Mining problems - algo DGW, difficulty adjustment.  (Read 926 times)
gl_daisy (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0



View Profile
June 02, 2017, 03:17:30 AM
 #1

I'm working on a DASH mining profit calculator, and can't prove the difficulty adjustment formula with historical data in explorer.dash.org. Here my proven way, did I miss anything? It really confuse me.  Huh

1.DASH difficulty adjustment formula, nextblockdifficulty = (currentblockdifficulty * 2 + sum(pre 23 blocks difficulty)/25 * ( 24 blocks targetimespan / 24 blocks actualtimespan).
2.I used the block data higher than #34140, which use the algo of DGW.
1715390863
Hero Member
*
Offline Offline

Posts: 1715390863

View Profile Personal Message (Offline)

Ignore
1715390863
Reply with quote  #2

1715390863
Report to moderator
1715390863
Hero Member
*
Offline Offline

Posts: 1715390863

View Profile Personal Message (Offline)

Ignore
1715390863
Reply with quote  #2

1715390863
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bathrobehero
Legendary
*
Offline Offline

Activity: 2002
Merit: 1051


ICO? Not even once.


View Profile
June 02, 2017, 04:32:28 AM
 #2

Why do you need DGW/historical data for difficulty based profit calculation?

Current profitability, or how many seconds it will take on average to find a block with a given hashrate is: (2^32 * difficulty) / (hashrate * 1e6)

Hashrate in Mh/s.

Not your keys, not your coins!
gl_daisy (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0



View Profile
June 02, 2017, 07:44:16 AM
 #3

I want to add the factor of hashpower increase into this calculator. For example, I expect that hashpower of DASH will increase 50% in June and stable from Aug to Dec. So I need current difficulty and hashpower increase anticipation to calculate next difficulty. But it seems the difficulty adjustment formula I get from https://github.com/dashpay/dash/blob/master/src/pow.cpp#L83 is not the way how DASH actually adjust its difficulty. Maybe I misunderstand the formula. Any help is appreciate!   
bathrobehero
Legendary
*
Offline Offline

Activity: 2002
Merit: 1051


ICO? Not even once.


View Profile
June 02, 2017, 07:55:53 AM
 #4

I want to add the factor of hashpower increase into this calculator. For example, I expect that hashpower of DASH will increase 50% in June and stable from Aug to Dec. So I need current difficulty and hashpower increase anticipation to calculate next difficulty. But it seems the difficulty adjustment formula I get from https://github.com/dashpay/dash/blob/master/src/pow.cpp#L83 is not the way how DASH actually adjust its difficulty. Maybe I misunderstand the formula. Any help is appreciate!  


"DGW uses multiple exponential moving averages and a simple moving average to smoothly adjust the difficulty".

The difficulty retarget will increase or decrease the difficulty based on the hashrate to try and aim for 2.5 minutes between blocks. But it's not predictable without knowing future hashrates and variance.

If you think the hashpower will increase 50% in June then profitabatility for the same hash will decrease 50%. The difficulty doesn't matter as long as the retarget is doing its job.

Not your keys, not your coins!
gl_daisy (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0



View Profile
June 04, 2017, 09:06:27 AM
 #5

Yes, you are right, it doesn't matter so much. I'm just confused by DGW, and I can't figure out why it been designed like this.
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!