<p>It's the sum of difficulty targets, not the individual difficulty scores. Therefore, two blocks at the same blockchain height are always the same cumulative difficulty¹.</p>
<p>If it were individual difficulty scores, it would make chaintips more gameable, e.g. a block with a particularly low hash might prompt a selfish mining attack because the attacker could expect that their chaintip will outdo another even when they reveal the block later, or miners might continue mining at the same height because an already discovered block barely met the difficulty statement. In other words, the blockchain would converge less reliably if it was based on individual block scores.</p>
<hr />
<p><sup>¹ Unless we're in a longer blockchain fork across a difficulty reset which changed the difficulty by different amounts for the two chaintips.</sup></p>

CC BY-SA 4.0
2017-07-19T15:44:32.727Z
2020-12-29T13:04:13.617Z
2020-12-29T13:04:13.617Z
Murch
<p>What is calculated towards the sum of PoW of the chain? Is it the target difficulty that has been met or is it the actual block header hash? </p>

<p>Say the target is 000000ABC00000000... and I mine block with hash 00000012300000000... - do I count 000000ABC00000000... amount of work for my block or do I count 00000012300000000... ?</p>

<p>In other words: if someone else mines a block at the same time, extending the same chain as my block (i.e. natural fork) and his hash is 00000002300000000... is his chain's cumulative PoW greater than mine or are we same?</p>

<proof-of-work><best-chain><block-hash>
Chain with most proof of work - hash target or block header hash?
Wapac
# Chain with most proof of work - hash target or block header hash?

(Asked by: username_0 on 2017-07-19)

What is calculated towards the sum of PoW of the chain? Is it the target difficulty that has been met or is it the actual block header hash?

Say the target is 000000ABC00000000... and I mine block with hash 00000012300000000... - do I count 000000ABC00000000... amount of work for my block or do I count 00000012300000000... ?

In other words: if someone else mines a block at the same time, extending the same chain as my block (i.e. natural fork) and his hash is 00000002300000000... is his chain's cumulative PoW greater than mine or are we same?

**Tags:** proof-of-work, best-chain, block-hash


---

## 1 answers

### Answer by username_1 on 2017-07-19. Score: 8 | Accepted answer

It's the sum of difficulty targets, not the individual difficulty scores. Therefore, two blocks at the same blockchain height are always the same cumulative difficulty¹.

If it were individual difficulty scores, it would make chaintips more gameable, e.g. a block with a particularly low hash might prompt a selfish mining attack because the attacker could expect that their chaintip will outdo another even when they reveal the block later, or miners might continue mining at the same height because an already discovered block barely met the difficulty statement. In other words, the blockchain would converge less reliably if it was based on individual block scores.

---

¹ Unless we're in a longer blockchain fork across a difficulty reset which changed the difficulty by different amounts for the two chaintips.


---

