Ethereum 2.0 – The Connection Among Terminal Total Difficulty (TTD), Difficulty, and Total Difficulty

difficultydifficulty-bombeth-2.0the-merge

What is the connection between Terminal Total Difficulty (TTD), Difficulty, and Total Difficulty?

Why can Total Difficulty increase if Difficulty decreases?


I know that:

difficulty: QUANTITY – integer of the difficulty for this block.

totalDifficulty: QUANTITY – integer of the total difficulty of the chain until this block.

And I understand what Terminal Total Difficulty (TTD) is in this link

I know that the Hash Rate is proportional to difficulty of the blocks, so if Hash Rate increase then difficulty of the blocks also increase. And because the definition of totalDifficulty is

integer of the total difficulty of the chain until this block.

So it makes me understand that the more difficulty, the more total difficulty. And therefore, when total difficulty increases, it will reach the TTD, and that time The Merge will be successful.

But when I do statistic on Ropsten testnet. I saw the difficulty was decreasing, while the totalDifficulty was increasingenter image description here

Can anybody help me to understand why the Difficulty (and hash rate) is decreasing, while Total Difficulty is increasing to reach the TTD? I think the Difficulty (and hash rate) need to be increasing for the increase of Total Difficulty because of its definition: Total Difficulty is integer of the total difficulty of the chain until this block.

Best Answer

Each block has a difficulty.

totalDifficulty is the sum of all the difficulty of the block and all previous blocks. Another way to describe totalDifficulty is "cumulative difficulty", but cumulative is a longer and not necessarily simpler word.

Even if hashrate decreases, difficulty is still larger than 0. So totalDifficulty will keep increasing and eventually exceed TTD.