How is the amount of proof-of-work invested in a chain calculated?

How is the amount of proof-of-work invested in a chain calculated?

The bitcoin whitepaper (page 3) states

The majority decision is represented by the longest chain, which has the greatest proof-of-work effort invested in it.

I could not find how exactly this difficulty is calculated.

Is it the sum of prefix zeros of the nonces of each block?

I found this answer but it is too short for me to understand.

https://ift.tt/2LDnaYK

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

When mining with 2 computers, do I need to use 2 separate wallets addresses?