diff --git a/protocol/blockchain/proof-of-work.md b/protocol/blockchain/proof-of-work.md index 200eaed..5635add 100644 --- a/protocol/blockchain/proof-of-work.md +++ b/protocol/blockchain/proof-of-work.md @@ -29,9 +29,9 @@ Though the term difficulty is often used colloquially to refer generally to the ## Chainwork -Chainwork is a representation of the work performed through a block's entire history. It is calculated using the difficulties of each of the blocks in the chain. The work for a single block is calculated as 2256 / (target + 1), or equivalently in 256-bit two's-complement arithmetic, (~target / (target + 1)) + 1, where `~` is the bitwise NOT operation. The chainwork for a block is the sum of its work with the work of all the blocks preceeding it. As such, when a new block is mined, its chainwork is simply its work plus the chainwork of the block before it. +Chainwork is a representation of the work performed through a block's entire history. It is the [expected](https://en.wikipedia.org/wiki/Expected_value) number of hashes required to re-solve every block in the chain. It is calculated using the difficulties of each of the blocks in the chain. The work for a single block is calculated as 2256 / (target + 1), or equivalently in 256-bit two's-complement arithmetic, (~target / (target + 1)) + 1, where `~` is the bitwise NOT operation. The chainwork for a block is the sum of its work with the work of all the blocks preceeding it. As such, when a new block is mined, its chainwork is simply its work plus the chainwork of the block before it. -This algorithm implies that summing chainwork makes sense. More formally, the expected number of hashes to solve one block candidate with work W is equal to the expected number of hashes to solve N block candidates with work W/N. This is proved [here](/protocol/blockchain/chainwork-proof). +This algorithm implies that summing chainwork makes sense. More formally, the expected number of hashes to solve one block candidate with work W is equal to the expected number of hashes to solve N block candidates with work W/N. This, and that chainwork is the expected number of hashes, is proved [here](/protocol/blockchain/chainwork-proof). ## Extra Nonce