Current location - Trademark Inquiry Complete Network - Futures platform - The Difficulty and Computing Power of Bitcoin Mining
The Difficulty and Computing Power of Bitcoin Mining
Difficulty is an index to measure the difficulty of mining, that is, the difficulty of calculating the hash value that meets the given goal.

Difficulty = Difficulty _ 1 _ Target/Current _ Target

The length of the difficulty _ 1_target is 256bit, the first 32 bits are 0, followed by all 1, which is generally displayed as a hash value: 0x0000000 fffffffffffffffffffffffffffffffffff, and the difficulty _ 1_target indicates the initial target hash of btc network. Current_target is the target HASH of the current block, which is compressed first and then stored in the block. Before building a block, the hash value of the block must be less than the given target hash value.

For example, if the compression target hash stored in the block is 0x 1b0404cb, the uncompressed hexadecimal hash is

Therefore, when the target HASH is 0x 1b0404cb, the difficulty is:

The process of bitcoin mining is actually to find a nonce through random hash collision, which makes the block hash smaller than the target hash value. How many hash collisions a mining machine can make per second is the representative of its "computing power", and the unit is written as hash/s or h/s.

Unit of force:

The difficulty of the Bitcoin system is dynamically adjusted, and it will be adjusted every time 20 16 blocks are dug. Adjust the zoning time based on the previous 20 16 blocks. If the average blocking time in the last cycle is less than 10 minute, the difficulty will be increased, and if it is greater than 10 minute, the difficulty will be reduced to ensure the stability of the system.

The computing power of the whole network is the sum of the computing power of all mining machines participating in competitive mining in btc network. The calculation power of the whole network in the current difficulty cycle will affect the difficulty adjustment in the next cycle. If the computing power of the whole network increases, the difficulty of mining will increase, and the output of a single miner will decrease at a fixed time. At present, the computing power of the whole network is about 24.42EH/s, and that of an ant S9 miner is about14th/s.

Then, given the current computing power of the whole network, how will the difficulty be adjusted in the next cycle?

According to the formula:

Because the occlusion time should be stable at 10 minutes, that is, 600s:

Then, under the difficulty of 3.46e+ 12, how long does it take for a mining machine with computing power of 14TH/s to produce a block on average?

According to the formula:

There are:

The result is about 12270 days.