Target

From Litecoin Wiki
Jump to: navigation, search

The target is a 256-bit number (extremely large) that all Litecoin clients share. The scrypt hash of a block's header must be lower than or equal to the current target for the block to be accepted by the network. The lower the target, the more difficult it is to generate a block.

It's important to realize that block generation is not a long, set problem (like doing a million hashes), but more like a lottery. Each hash basically gives you a random number between 0 and the maximum value of a 256-bit number (which is huge). If your hash is below the target, then you win. If not, you increment the nonce (completely changing the hash) and try again.

For reasons of stability and low latency in transactions, the network tries to produce one block every 2.5 minutes. Every 2016 blocks (which should take 3.5 days if this goal is kept perfectly), every Litecoin client compares the actual time it took to generate these blocks with the two week goal and modifies the target by the percentage difference. This makes the proof-of-work problem more or less difficult. A single retarget never changes the target by more than a factor of 4 either way to prevent large changes in difficulty.

What is the target now?

When does the target change next?

What has the target been in the past?

  • need link for target history?

What is the maximum target?

The maximum target used for Litecoin blocks is:

0x00000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Because Litecoin stores the target as a floating-point type, this is truncated:

0x00000FFFF0000000000000000000000000000000000000000000000000000000

Since a lower target makes Litecoin generation more difficult, the maximum target corresponds to the lowest possible difficulty.

Related articles

Portions of this content was copied from the Bitcoin wiki under the CC-BY-3.0 license.