How does Bitcoin Gold difficulty adjustment work?

1

Bitcoin Gold claimed to have per-block difficulty adjustment, how does it work? I find this https://github.com/BTCGPU/BTCGPU/pull/151, but still don't understand how it work by change some parameters.

Anderson

Posted 2017-11-13T12:57:13.890

Reputation: 115

Answers

0

It's just a simple moving average with a window of 30 blocks:

next_D = sum(past 30 D) / sum(past 30 solvetimes) * 600

This isn't exactly what it's doing, but it's darn close.

zawy

Posted 2017-11-13T12:57:13.890

Reputation: 1

Thank you. Is this fomula calculated every blocks? And why is 600?Anderson 2017-11-19T07:31:09.303

Time is calculated in terms of millisecond i believeVforVendetta 2018-09-20T12:47:19.460