bitcoin-dev Digest, Vol 10, Issue 13



Summary:

Bob McElrath proposed a simple algorithm called the "critically damped harmonic oscillator" for hashrate rebalancing. This solution is designed to find the first and second derivatives of the hashrate over time, resulting in a damped harmonic oscillator system with two parameters: oscillation frequency and damping factor. The maximum oscillation frequency is the block rate, and any oscillation faster than that cannot be measured by block times. The damping rate is an exponential decay and for critical damping is twice the oscillation frequency. While this solution is a numeric approximation to a differential equation, it provides a zero-parameter, optimal damping solution for a varying hashrate. It is also possible for weak block proposals to get better approximations to the hashrate. Dave Hudson suggests that the community adjust difficulty at each new block using the current method, instead of adopting McElrath's proposal. However, if faster relaxation in case of adversity is required, a weighted average of the previous 2016 blocks could be performed, based on historical interblock timing data. An optimal weighting could then be found to address this issue.


Updated on: 2023-06-11T04:29:32.155048+00:00