Did you know that Bitcoin maintains a 10 min avg time between blocks regardless of the amount of hash power that on the network?

It’s possible because of a mechanism called the difficulty adjustment and it’s incredibly important to understand.

Let me break it down for you 👇
The difficulty refers to how hard it is for a miner to find a hash that would be considered a valid block on the network.

A higher difficulty translates to more hashes needing to be calculated on average whereas a lower difficulty means less hashes are needed on average.
If we recall from my previous thread on how mining works we know that a miner is hashing random values in search of an output that is less than some target.

When they find an input that produces an output below this target they are able to produce a block and claim the reward
This means this target value is directly related to how difficult it is to find a valid block.

We can control the difficulty by controlling this target value.
The difficulty adjustment refers to the mechanism used to adjust this target value and thus the overall difficulty.

This mechanism is the key to maintaining the production of blocks every 10 minutes.
Let’s say with the current network hashrate and current difficulty that it takes miners on average 10 minutes to find a block.

If we never adjusted the difficulty but the amount of miners that joined the network increases then the average time to find a block would drop.
The inverse is also true, if the difficulty was not adjusted but the amount of miners dropped significantly then the average time to find a block would also increase significantly.

Adjusting the difficulty allows the network to maintain a consistent 10 minutes between blocks.
The difficulty is adjusted every 2016 blocks which is roughly every two weeks.

This means within that two week period if lots of miners join or leave the network the average time between blocks can increase or decrease but every two weeks it will reset back to 10 minutes.
You might be wondering how you can calculate what the target or difficulty should be to maintain a 10 minute average block time?

The algorithm basically looks at the recent history of blocks produced and is able to see how fast or slow they have been found.
If they have been found faster than 10 minutes on average then we can calculate roughly how much hashing power has been added to the network and adjust the difficulty appropriately.

If they have been found slower than 10 minutes then we can do the inverse.
Okay so I get that the difficulty adjustment is used to maintain consistent block production but why should I care?

Well consistent block production translates to a consistent supply schedule for the production of new Bitcoin.

This is an incredibly powerful concept.
It means miners cannot produce more Bitcoin even if the price increases.

In markets like the gold market, the price of gold is a major factor for how much gold is produced.

If the price of gold increases it makes sense for mining companies to spend more money to dig more gold
Essentially price increases in traditional markets often are met with additional supply that creates negative price pressure.

In Bitcoin, there is no such feedback loop.

Increased prices do not lead to the ability to generate more supply of Bitcoin.
I hope this helped you understand what the difficulty adjustment is, how often it happens, and why it is important.

Please share this information as education is the number one driver of adoption and we’re all here to accelerate the adoption of Bitcoin.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with John Cantrell

John Cantrell Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @JohnCantrell97

Jan 27
To truly understand why we need Bitcoin it’s important to understand money itself.

What is money?
Why do we need it?
Why Bitcoin?

There’s many books written on these topics but let me try to break it down for you:
At the core of any economy are people who perform work that produces value for other people.

A farmer grows food for us to eat.
A painter creates art for us to enjoy.
A mechanic fixes our car so we can travel.
A teacher educates our children so they can prosper.
Without money the mechanic can only eat if the farmer needs his car fixed.

Each person needs to want what the other is producing at the same time.

A teacher only needs their car fixed so often but the mechanic needs his children educated all of the time.
Read 19 tweets
Jan 25
You’ve done your homework on Bitcoin and are learning about Lightning or just set up a node. You aren’t sure how it works and are nervous about losing funds

What’s involved in backing up a lightning node?

I’ve been using lightning for years, let me break it down for you 👇
Your Bitcoin is in cold storage. You stamped your mnemonic into a piece of solid steel.

It won’t be destroyed in a flood, fire, or acid bath.

You can finally sleep at night knowing your Bitcoin are safe.

With Bitcoin covered, you are excited to experiment with Lightning.
You fully expect a similar security model when booting up your lightning node for the first time.

I’ll get a seed phrase and stamp it into another piece of steel.

Unfortunately, it won’t quite be as simple.

What makes lightning more difficult to backup and secure?
Read 13 tweets
Jan 24
While we all now know what a Bitcoin price halving is 😂, I’m sure you’ve heard about Bitcoin’s other less brutal halving.

What is being cut in half?
How often does it happen?
Why should I care?

I’ve been working with Bitcoin for almost a decade, let me break it down for you 👇
When you hear the word halving you probably wonder what exactly is being cut in half.

Is it the price?
The number of coins?
The number of coins I own?
The mining hash rate?

Luckily it’s none of those things. It’s referring to the rate at which new Bitcoins are produced.
A block is mined roughly every 10 minutes.

Each block that is mined produces a certain amount of Bitcoin.

The amount of Bitcoin per block started at 50 when Bitcoin was first released and it is that amount which halves roughly every 4 years.

What was once 50, is now 6.25
Read 15 tweets
Jan 23
My thread about the security of 12 vs 24 word mnemonic phrases surfaced some good discussion and some confusion. To clarify it further it’s important to understand the answers to:

What is a seed?
How’s it different from a private key?

Let me further break it down for you 👇
A seed is a set of random data that is used as the starting point for wallets to generate an endless supply of public and private keys for you.

If someone has your seed they can use it to generate the private keys for ALL of the addresses you use and ever will use.
The mnemonic phrase is used as an easy way to remember and/or write down your seed.

So if someone gets your mnemonic phrase they can use it to get your seed and eventually all of your private keys.
Read 10 tweets
Jan 22
Something bitcoiners can forget is that it is challenging for the avg person to realize modern, govt issued currencies are a social construct and not a force of nature.

The illusion of fiat is completely pervasive and is reinforced constantly from our very first allowance 👇
A helpful discussion to wake others up to the injustice of fiat comes from the “The bitcoin standard” by @saifedean.

By simply asking the question:

“what makes for a good form of money?”

the perception of our local fiat currency as inherent and necessary can be broken.
Ammous' discussion of hard vs easy money illustrates that currencies that have an unlimited supply become worthless in the long run but there is also the possibility to strategically and nefariously siphon off a society's value through intentional manipulation of currency supply.
Read 12 tweets
Jan 22
Did you know that both 12 and 24 word mnemonic phrases offer the same level of security in terms of protecting your private keys?

It’s hard to believe, I know. Let me break down why 👇
It depends how you define ‘level of security’.

I am referring to the amount of time or resources required by an attacker to get your keys.

If protocol A takes an attacker 4hrs to get your keys and protocol B takes 24hrs to access your keys then protocol B is more secure.
In Bitcoin the security is largely defined by the cryptography used.

In Bitcoin’s case we use elliptic curve cryptography to define keys and calculate signatures.

There are known algorithms that can compute a private key from a public key in roughly 2^128 operations.
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(