shuijian-xu / bitcoin

0 stars 0 forks source link

the concept of difficulty? #223

Open shuijian-xu opened 4 years ago

shuijian-xu commented 4 years ago

To make different targets easier to compare, the concept of difficulty was born. The trick is that difficulty is inversely proportional to the target, to make comparisons easier.

The specific formula is:

difficulty=0xffff×256^(0x1d–3) ∕ target

shuijian-xu commented 4 years ago

The difficulty of Bitcoin at the genesis block was 1. This gives us context for how difficult mainnet currently is. The difficulty can be thought of as how much more difficult mining is now than it was at the start.