Bitcoin 101: Difficulty Adjustment
∞/21m

Bitcoin 101: Difficulty Adjustment

In 21 Million we learned that one prong of bitcoin’s simple three-pronged approach to monetary policy is that new bitcoin is released to the market every 10 minutes, on average, until the final satoshi is released around the year 2140.

That a new block is mined every 10 minutes, on average, is achieved through the difficulty adjustment – how much computing power must be deployed to mine a new block.

The difficulty adjustment algorithm, while simple and elegant, is one of bitcoin’s key technological breakthroughs. It ensures that no matter how much (or how little) computational resources are dedicated to mining new blocks, a new block is only mined every 10 minutes, on average.

Because of the difficulty adjustment, bitcoin is able to maintain the predetermined stock-to-flow ratio that Satoshi designed, even in the face of better technology, like bitcoin mining ASICs (application specific integrated circuits).

In this way it is similar to gold, which as we discussed in Why Gold Won has been able to maintain a constant stock-to-flow of about 67 over thousands of years of advancing mining technology.

With gold, the more gold that gets mine, the harder it becomes to mine more gold.

With bitcoin, the more computational resources dedicated to mining bitcoin, the more computationally intensive mining bitcoin becomes.

Whether they realized it or not, through implementation of the difficulty adjustment Satoshi effectively reproduced one of the natural phenomena of gold that led to its adoption of money.

What, exactly, though, is getting more difficult? And how is it adjusted?

To “find” new blocks (remember, a block is just a batch of transactions) to add to the blockchain, miners must solve a math problem called a “Proof-of-Work.” This math problem is essentially a brute-force “guess and check” math problem, and the more computational resources you have the faster you can perform more guesses, increasing your chances of being the first to “find” a solution to the math problem.

Solving this math problem is what gets adjusted to be more, or less, difficult.

(We will cover the details of proof-of-work next week.)

The exact mechanics of how this is implemented are that every 2,016 blocks, the bitcoin network assesses the total time it took to mine those last 2,016 blocks. Ideally, if every block is taking 10 minutes, on average, to mine, this should be exactly two weeks.

If the actual time is less than two weeks, it indicates that the collective hashing power – i.e. the collective compute dedicated to solving the proof-of-work math problem – of the network has increased, making it too easy to mine new blocks, and the difficulty of the math problem to be solved in order to mine a new blocks will be increased.

Conversely, if it took longer than two weeks, the difficulty of the math problem is decreased. This is the difficulty adjustment.

The adjustment factor applied every 2,016 blocks is proportional to the difference between the actual time taken and and the desired time of two weeks. For example, if the actual time to mine the last 2,016 blocks was 13 days, the difficulty would be increased by a factor of 14/13 = 1.08.

If it took 7 days, the difficulty would be increased by a factor of 2.

If it took 21 days, the difficulty would be decreased by a factor of 0.667.

The maximum adjustment factor is limited to a 4x increase or decrease from the previous difficulty level to prevent abrupt changes in difficulty.

In another 2,016 blocks, the total time it took to mine those blocks is assessed again, and the difficulty is adjusted once more.

As such, the difficulty adjustment ensures that the release schedule aspect of bitcoin’s monetary policy is executed as Satoshi intended, and that bitcoin cannot be released at a faster rate no matter the technological advancements in bitcoin mining capabilities.

要查看或添加评论,请登录

Zackary Morris的更多文章

  • Bitcoin 101: Bitcoin, Not Crypto

    Bitcoin 101: Bitcoin, Not Crypto

    In Proof-of-Work vs. Proof-of-Stake, we discussed why PoW is the new innovation, while PoS is effectively an extension,…

    3 条评论
  • Bitcoin 101: Proof-of-Work vs. Proof-of-Stake

    Bitcoin 101: Proof-of-Work vs. Proof-of-Stake

    In 51% Attack, we introduced the related ideas that: Bitcoin is the first software program that is natively secured by…

    1 条评论
  • Bitcoin 101: 51% Attack

    Bitcoin 101: 51% Attack

    In discussing bitcoin’s Security Budget, we introduced the concept of a “51% attack.” What is a 51% attack? A 51%…

    1 条评论
  • Bitcoin 101: Proof-of-Work

    Bitcoin 101: Proof-of-Work

    In discussing the simple genius of the Difficulty Adjustment, we introduced the topic of Proof-of-Work. A quick…

    1 条评论
  • Bitcoin 101: Security Budget

    Bitcoin 101: Security Budget

    When discussing the Block Subsidy, we learned that the block subsidy serves two primary functions: Implementation of…

  • Bitcoin 101: Fair Distribution

    Bitcoin 101: Fair Distribution

    When learning about the block subsidy, we posed the following question: Let’s say you create a new, global, digital…

  • Bitcoin 101: The Block Subsidy

    Bitcoin 101: The Block Subsidy

    In 21 Million we discussed how the block subsidy is how bitcoin implements one prong of its monetary policy – its…

  • Bitcoin 101: 21 Million

    Bitcoin 101: 21 Million

    In What Is Bitcoin, we asked how we can be sure there will only ever be 21 million bitcoin? Bitcoin’s monetary policy…

  • A Response to Kerrisdale's MicroStrategy Thesis

    A Response to Kerrisdale's MicroStrategy Thesis

    Kerrisdale Capital recently came out with a report detailing their thesis for a long bitcoin/short MicroStrategy pair…

    4 条评论
  • MicroStrategy Is A Bitcoin Bank

    MicroStrategy Is A Bitcoin Bank

    At 2.6x, MicroStrategy’s equity premium is exceptionally high.

    1 条评论

社区洞察

其他会员也浏览了