Browse Source
Some comments turned out to be wrong and some could be more helpful. It turns out that when AveragingWindowTimespan was changed to fix a HUSH mainnet bug long ago, that introduced a bug for HSC's that do not use a 75s block time. Since the default is 60s that likely means all HSC's that will be created. There were no production HSC's in use at the time of that bugfix, so the bug went unnoticed until DRAGONX was launched. The bug then manifested as the DRAGONX difficulty bug, which cause the difficulty to never correct down, only up and lead to extremely long block times on DRAGONX mainnet. This code change ensures that HUSH mainnet uses the same hardcoded AWT as it did previously and all other HSC's will use params.AveragingWindowTimespan() , including DRAGONX mainnet. This seems less dangerous than changing AveragingWindowTimespan() on HUSH mainnet.pull/259/head
Duke Leto
1 year ago
1 changed files with 6 additions and 5 deletions
Loading…
Reference in new issue