# BCH upgrade proposal: Use ASERT as the new DAA

**URL:** <https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566>\
**Category:** Mining\
**Created:** [July 23, 2020, 12:15pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566 "2020-07-23T12:15:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tromp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/tromp/32/22_2.png) [@tromp](https://forum.grin.mw/u/tromp)\
**Post date:** [July 23, 2020, 12:15pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/1 "2020-07-23T12:15:11Z")

</div>

Maybe Grin could benefit from recent DAA research?!

> **[read.cash](https://read.cash/@jtoomim/bch-upgrade-proposal-use-asert-as-the-new-daa-1d875696)**
>
> Abstract The current BCH difficulty adjustment algorithm (DAA) allows for a switch miner to extract a large amount of profit from constant-hashrate miners. This strongly discourages constant-hashrate...

Jonathan also made a great accompanying video explaining the tool in detail:

[![](https://img.youtube.com/vi/Fd6GFpZjLxU/hqdefault.jpg "The BCH difficulty adjustment algorithm is broken. Here's how to fix it.") ](https://www.youtube.com/watch?v=Fd6GFpZjLxU)

---

<div class="post-metadata">

**Author:** ![tromp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/tromp/32/22_2.png) [@tromp](https://forum.grin.mw/u/tromp)\
**Post date:** [July 28, 2020, 2:05pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/2 "2020-07-28T14:05:59Z")

</div>

Here’s a comparison of Grin’s current DAA with some increased dampening variants as well as 4 versions of the simpler wtema:

> **[tromp/difficulty](https://github.com/tromp/difficulty/tree/comparator)**
>
> Contribute to tromp/difficulty development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Anynomous](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/anynomous/32/2928_2.png) [@Anynomous](https://forum.grin.mw/u/Anynomous)\
**Post date:** [July 28, 2020, 3:42pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/3 "2020-07-28T15:42:54Z")

</div>

Nice, I was waiting for a benchmark graph. No screenshot?  
I am lazy to install and run, cannot do it from my mobile phone.

---

<div class="post-metadata">

**Author:** ![tromp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/tromp/32/22_2.png) [@tromp](https://forum.grin.mw/u/tromp)\
**Post date:** [July 28, 2020, 6:48pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/4 "2020-07-28T18:48:40Z")

</div>

This is just one of many many possible comparison graphs the tool can show:

 ![Screen Shot 2020-07-28 at 8.47.08 PM](https://canada1.discourse-cdn.com/flex036/uploads/grin/original/2X/c/cab9c8423e5742cb5794d3993cc3b932edd92920.png)

---

<div class="post-metadata">

**Author:** ![oryhp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/oryhp/32/2923_2.png) [@oryhp](https://forum.grin.mw/u/oryhp)\
**Post date:** [July 28, 2020, 6:54pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/5 "2020-07-28T18:54:30Z")

</div>

So since Grin is expected to have ASICs, this is to prepare for a scenario when there will be coins using the same PoW algorithm and hence we want to give them less incentive to switch networks by reducing the difficulty fluctuation?

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [July 28, 2020, 8:07pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/6 "2020-07-28T20:07:04Z")

</div>

> [@oryhp](#):
>
> So since Grin is expected to have ASICs, this is to prepare for a scenario when there will be coins using the same PoW algorithm and hence we want to give them less incentive to switch networks by reducing the difficulty fluctuation?

I think it will be useful even before asics, as general-purpose GPUs can mine and switch between different chains, grin being one of them.

---

<div class="post-metadata">

**Author:** ![tromp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/tromp/32/22_2.png) [@tromp](https://forum.grin.mw/u/tromp)\
**Post date:** [July 28, 2020, 9:28pm UTC](https://forum.grin.mw/t/bch-upgrade-proposal-use-asert-as-the-new-daa/7566/7 "2020-07-28T21:28:12Z")

</div>

This is simply to improve the DAA regardless of whether ASICs appear. While this tool was developed for studying BCH hashrate variations caused by miners switching to/from Bitcoin, Grin has similar variations due to miners switching to/from all other GPU mined coins.

In the latest version I made the wtema half-lives a multiple of 60,  
which fits Grin better. The former multiples of 144 were due to BCH using a 144 block window which is expected to take 144 \* 10 mins = 1 day.  
You can also see how Grin’s 60 block window with damping factor 3 has similar response time to a 180 block window with no damping.
