Bitcoin 101 – What is The Longest Chain Rule? ( A Farming Analogy!)


Hey guys,

 
 

While many of us are strong supporters of Bitcoin (and other aspects of blockchain) – there are still some key concepts that we don’t fully “grasp”

 

If you understand these concepts, however, I am certain that your love for Bitcoin will increase – **and so shall your conviction to hold through market downtrends** 😉

 

That being said – I know it’s not easy to wrap your head around some of the stuff. So I’ve written SUPER SIMPLE analogies to help you!

 

A few weeks ago I wrote one on the Proof Of Work Puzzle

Today, I wrote an analogy on an equally important but often under-discussed topic: **The Longest Chain Rule**

 

If you understand The Longest Chain Rule it will help you with other concepts as well (Like 51% Attack, Double spends etc) So I wrote an analogy to explain the meat of it – **A Farmer Analogy**

 

(Expert reader beware – I kept it super simple 😉 )

 

**[Formatted & Readable Orignal Post](http://www.mangoresearch.co/understanding-longest-chain-rule/)**

 

—————–

# Longest Chain Explained – A Farmer’s Analogy

Let’s pretend we’re all farmers living in a small town. Majority of us farm rice as our major source of income. Weharvest the rice and pack them into 1KG gunny sacks and then carry the sacks to the Townhall. The sacks are then placed onto the only carriage the town has and transported to The Main City and sold.

 

 

####**The Town Hall Meeting:** One day a Town Hall meeting is called to discuss the size of the gunny sacks…

>An angry debate ensues on whether or not they should increase the size of each gunny-sack. Some farmers want the increased gunny-sack size for increased profits. But other farmers are against the idea – and claim it will make it more difficult for the older/younger/weaker farmers to carry the gunnysack to the Townhall.

 

####The Mayor suggests that a **vote** should be conducted to solve the matter. However, an objection is raised:

 

>“How is that fair? I do more work than these guys. I harvest far more rice. My vote should count more”

 

 

####**The Vote:** That’s when a farmer named Satoshi comes up with an idea. He suggested that the next time they come to the town hall – they vote with their gunny-sacks of rice.

>Each gunny-sack would represent a vote. That way, if you have more gunny-sacks you can cast more votes.Each sack of rice would be proof of their hard work. Farmers who worked harder, had more rice – and hence got to cast more votes

 

 

####**The Result:** Everyone loved the idea. The next day, two rows were laid out near the Town Hall. The first row represented _“Increase Gunny Sack Size”_ and the second row represented _“Don’t Increase Gunny Sack Size”_

>Farmers would carry their gunny sacks to the town hall and place each sack in one of the two rows – thus casting their vote. The row that had the longer chain of gunny sacks would be picked as the final decision. At the end of the day, the **_“Don’t Increase Gunny Sack Size”_** row had the longer chain of gunny sacks – and thus was the winner!

 

 

Disagreements within a blockchain are pretty much solved the same way. Each gunnysack represents a “block” in the blockchain. A row of gunny sacks represents a chain.

 

Whenever there’s a disagreement, network participants can “fork” off the current chain. Thereby starting a new chain of blocks. Participants who agree with this new chain can now start applying their “blocks” to the new chain as well. Eventually, if the new chain extends the old chain – the Longest Chain Rule will kick in and will be declared the winning chain.

 

 

#Longest Chain & “Work”

In our analogy, farmers were adding sacks of rice to “vote”. These sacks of rice are tangible and represent work done. The longest row of sacks represents the majority.

 

Similarly, in the blockchain, miners add a block to the chain to cast their vote. And the longest chain of blocks represent the majority. Miners on the network compete against each other by attempting to solve a puzzle – in order to win the “right” to add the next block onto the chain.

 

A miner consumes a lot of electricity to solve these puzzles. But each time he wins (i.e solve it before someone else does) – his block gets added to the chain.

 

##But – How does a “digital” block represent something tangible/work?
>In a way, the miner has permanently applied his electricity onto the block he just created. Since he won the solved the cryptographic puzzle, his block (with his ‘electricity’) gets added to the chain.

 

 

#So now you could say…

The farmers ‘proof of work’ was his sack of rice – and hence got to vote. After all the farmers place their sacks of rice in each of the two rows, we have our decision because:

 

>​“The longest row of sacks represents where the majority farmers have placed their vote”

 

The miner’s proof of work is his winning “block” of transactions – since each block represents a miner’s electricity consumed – the entire chain represents the consumed electricity of all the previous winning blocks.

 

>“The longest chain of blocks represents where the majority miners have placed their vote”

 

 

#Concluding Thoughts – Longest Chain & Immutability

Remember, energy is never destroyed – simply transferred. In the proof of work, you could say that the energy is transferred to secure the blockchain.

 

Why ‘secure’? Because to change a block, you’ll have to redo the “work” that was needed to create that block.

 

To undo any of the previous blocks, you’ll have to redo the work for that block and every block that followed it. I’ll explain (in detail) why in another post. But this is what gives Bitcoin it’s strong immutability.

 

In essence, an attacker will have to start a new chain and do enough work to also become the longest chain. If and only if his chain is the longest chain will it be considered the winner and valid. And you may understand now – to achieve this, would require consuming a lot of electricity. This is why The Longest Chain rule is so crucial to understand

 

—————

 

Hope this post helps! 🙂

 

—————–

 

View Reddit by PoRco1xView Source

If the Bitcoin price rises to over $1M, that would give ~100k bitcoiners “Ultra High Net Worth Individual” status (+$50M). With worldwide UHNWIs projected at only ~200k by 2022, this means the Bitcoin 1% could by then make up 30-50% of the world’s financial elites.


If the Bitcoin price rises to over $1M, that would give ~100k bitcoiners “Ultra High Net Worth Individual” status (+$50M). With worldwide UHNWIs projected at only ~200k by 2022, this means the Bitcoin 1% could by then make up 30-50% of the world’s financial elites.

View Reddit by Bitcoin_21View Source