Glossary · Mining

Target

By the CloudMineCrypto teamUpdated

Definition

The target is a 256-bit number that a block’s hash must be at or below for the block to be valid. A lower target means fewer winning hashes, so blocks are harder to find.

Part of the Bitcoin mining glossary, 88 terms in plain English.

A block hash has to be below this number

Difficulty 1

8 leading zeros

The easiest target the rules allow. The first blocks in 2009 used it.

00000000ffff0000000000000000000000000000000000000000000000000000

Today: difficulty 132.8 trillion

19 leading zeros

Worked out from the live difficulty, refreshed every 10 minutes.

000000000000000000021ec50000000014150d707576190b7fc44ceb4d6b138b

Each extra leading hex zero makes a winning hash 16 times rarer. Difficulty measures the same thing on a smooth scale: target at difficulty 1 divided by today’s target.

How does the target work?

A block hash is a 256-bit number that looks random. The target is a line: any hash at or below it wins, and anything above it is thrown away. Written in hexadecimal, a low target starts with a long run of zeros, which is why people say a winning hash “starts with zeros”.

The header doesn’t store all 256 bits. It packs the target into a 4-byte field called bits, and every node unpacks it the same way.

How is the target set?

Every 2,016 blocks, each node compares how long those blocks took with two weeks. If they came faster, the target goes down, and if slower, it goes up, by at most four times either way. That keeps blocks about ten minutes apart as miners come and go.

Difficulty is the same thing on a friendlier scale: the easiest allowed target divided by today’s. The target falls as difficulty rises.

How many hashes does today’s target take?

133 trillion × 2³² ≈ 570,187 quintillion hashes a block
Live, from the current difficulty, refreshed every 10 minutes.

That’s the average number of tries the whole network needs per block. Pools use the same idea with a much easier target of their own, so every machine sends back shares often enough to count its work.

Sources

  1. Target · Bitcoin Wiki
  2. Difficulty · Bitcoin Wiki
  3. Block chain guide · Bitcoin developer documentation

Live figures on this page come from the CloudMineCrypto API and public chain data, refreshed regularly, and are labelled where they appear. Educational only, not financial advice.

Now watch mining happen.

Claim a free 8-hour mining plan in the CloudMineCrypto app and watch your BTC balance grow from live network data. Withdraw to your own wallet, Lightning included. Rewards are estimates.