An often misunderstood topic is that of chain splits and how they are potentially resolved. With the recent proposal from Shaolinfry discussing User Activated Soft Forks (UASF) getting much attention, these misunderstandings must be clarified to fully understand the implications of chain splits and their potential resolutions.
Types of Forks
Miners can create chain splits through the deliberate orphaning of blocks that appear to be valid to some clients. Users maintain a set of consensus rules that they require of all blocks. When users disagree about the sets of consensus rules to enforce, they will follow a different chain. To simplify discussion, well skip the case where the consensus rules are agreed upon, but miners decide to orphan blocks for other reasons, and cases where there are more than two sets of consensus rules.
In the following examples, there are two sets of rules, the Red rules and the Yellow rules. In these examples, the Red rules are original rules being enforced, and the Yellow rules are the modified rules. Orange rules are the combination of both Red and Yellow rules (both rule sets agree that these blocks are valid).
Incompatible Hard Fork
An incompatible is the simplest type of chain split to understand. At a certain block height, some users decide to implement a new ruleset. In this case, the new ruleset is completely independent of the original rules.
Incompatible Hard Fork
A hard fork occurs after some miners decide to mine on the new ruleset, and some continue on the old ruleset. No block produced under the new rules is valid under the old rules, and vice versa. The Ethereum/Ethereum Classic split is an example of this kind of split. In this case, the chains are eternally split with no chance of ever converging, no matter how much work is mined into each chain.
Semi-Compatible Hard Forks
A semi-compatible hard fork occurs whenever the rulesets intersect, but there are some blocks that are valid on only one of the chains for each chain.
Semi-Compatible Fork
In these cases, miners can prevent a chain split by mining only Orange rule blocks. However, once a miner mines a Red or Yellow block, the chain splits. It is possible for the chains to converge if miners eventually put together an exclusively Orange chain starting from when the users accepted Yellow rules that surpassed the total work of both of the other chains. If they ever did this, both the Red/Orange and Yellow/Orange chains would be orphaned by Red/Yellow clients, and they would see a single chain. There are no major forks of this type that I am aware of.
The best bet for miners in this case (depending on the specifics) would typically be to just mine Orange blocks, preventing any chain split. By doing so, miners are effectively turning a Semi-compatible fork into a Soft Fork.
Compatible Hard Fork
In a hard fork, the ruleset expands, to include all of the previous rules, but also allowing other conditions.
Hard Fork
When the rules expand, as soon as a miner mines a block with the Yellow rules, the chain splits. This type of split will diverge as long as the Yellow chain contains more work than the Orange chain. One danger in this type of split is that if the Orange chain contains more work, the Yellow chain will be orphaned. Users of the Yellow chain must not only be sure that a vast majority of hashpower will be on this chain initially, but will continue to be on this chain for eternity. Examples of this type of fork include Bitcoin XT, Bitcoin Classic and Bitcoin Unlimited.
Soft Fork
A soft fork is when the ruleset is tightened and the Yellow rules are completely covered by the Red rules (thus only Orange and Red rulesets).
The chain split can occur whenever a miner creates a Red block. Users who use the Red ruleset will follow that chain, and users who use the Yellow ruleset will follow the Orange chain. In this case, if the majority of hashpower ever starts enforcing the Orange rules, the Red chain will become orphaned. This type of fork occurred in Bitcoins history numerous times with changes such as BIP66, CSV, CLTV, and is in the proposed SegWit Soft Fork.
Reorganization Risk and Split Risks
Both massive reorganizations and chain splits present dangers to users and miners. A massive reorganization can cause previously accepted transactions to disappear, which will guarantee that a large number of people will lose money in the process.
In this case, for example, perhaps a year ago you were paid 10BTC for your car, and a year later, that transaction essentially disappears from the ledger and your chain is abandoned. You have no car and no Bitcoins. This type of behavior would cause a great loss of confidence in the currency. Depending on the type of split, a massive reorganization will only affect users of the looser ruleset. Users of the tighter ruleset will never get reorganized.
A chain split also presents risk. The value of Ethereum took a tumble after it split from Ethereum Classic. It added confusion to the marketplace (Which is really Ethereum? The one with the original rules, or the one with the rules the centralized Ethereum Foundation enforces today?). A chain split affects all users adversely. There are cases where a split may be preferred (say, two groups have vastly different interests and are best served following their own wants, rather than compromising).
Mitigating Risk
Risk for most of these forks can be mitigated by both miners and users, in most cases.
For an incompatible hard fork, no mitigation plan can occur. The chain IS splitting, so long as some miners and some users want it to. There is nothing that can happen. This is the equivalent of getting a divorce decree and parting ways, never to interact again.
For a semi-compatible soft fork, miners have the power to prevent both a chain fork and massive reorganization. If the majority of miners choose to mine only Orange blocks, users will remain on one chain and reorganizations will be limited to a small number of blocks.
For a compatible hard fork, risk is exclusively on the Yellow rule users. Their best mitigation is to ensure the majority of the economy is on their side. Its also important to make sure the majority of the miners are also on their side initially, otherwise the chain will not split. Without the majority of the economy, the value of the Orange blocks will be greater, thus pulling miners interested in profit to their side, leading to a massive reorganization.
Extreme care must be taken in this scenario (something that was not present with Bitcoin XT, Bitcoin Classic, nor the proposed Bitcoin Unlimited). The former would activate with a mere 75% of hashpower, and Bitcoin Unlimited has no threshold for activation.
For a soft fork, the risk is exclusively on the Red rule users. Their best mitigation strategy is to ensure that they have the economy on their side, and the vast majority of miners following the Red rules OR the vast majority of miners on the Orange rules.
This may seem a bit counterintuitive, but if the vast majority of miners are mining the Orange rules, then they will remain in consensus with the Orange users and will not get Orphaned. Miners can mitigate this by only mining blocks in the Orange set and orphaning the Red set.
Miners have a significant role in mitigating this risk. In every case except the Incompatible Hard Fork, the miners can prevent a chain fork. For the semi-compatible hard fork, they can do this by converting it into a soft fork. For the compatible hard fork, they can only do this by rejecting the hard fork. For the soft fork case, they do this by enforcing the soft fork. However, even without the miners doing this, users have an incentive to protect themselves by enforcing the Orange rules and rejecting anything does not meet them. This means rejecting hard forks and enforcing soft forks.
Epilogue: Escaping a Miner-Imposed Ruleset Change
Many, including Jeff Garzik, have cast suspicion upon soft forks because they do not give users a choice. The nature of Bitcoin and other Proof-of-Work based blockchains cannot prevent miners from enforcing stricter rules than users agree to. However, users do have power by invoking an incompatible hard fork.
In this case, users will force the chain to split by introducing a new ruleset (which may include a proof-of-work change, but does not require one). This ensures users always have an escape from a miner-imposed ruleset that they reject. This way, if the economy and users truly reject a soft fork rule change, they always have the power to break away and reclaim the rules they wish. It may be inconvenient, but the same is true of any attack by the miners on users.
This guest post by Alphonse Pace was originally published on Mediumand is reproduced here under a Creative Commons License.
Link:
Guest Post: Chain Splits and Resolutions - Bitcoin Magazine
- The Worlds First Bitcoin Debit Card Is Almost Here [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Google removes malware Android apps used to secretly mine bitcoin [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin runner-up Litecoin emerges as low-price challenger [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- How does Bitcoin work? - Bitcoin - Open source P2P money [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin - Wikipedia, the free encyclopedia [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- POLICE STATE USA - COP Goes CRAZY at INNOCENT Black Guys Filming a Wal-Mart in Houston - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- START MINING LITECOIN with Home Built LITECOIN MINING RIG (FORGET BITCOIN) ----- THE FUTUR - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin going to $10,000 - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin going over $1,000 - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin Trading Robot - The First Automated Bitcoin Robot - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin or Gold? Squawk Walk Taipei- Squawkonomics - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin Miner AntMiner S1 180 - 200 GH/s Nu in de Aanbieding! - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- New Bitcoin Documentary: Boom or Bust - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- The Bitcoin Revolution Is Just Beginning (Full Interview) - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Market Extra: Bitcoin venture capital money hasnt kept up with buzz [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin Exchange BTC China Cuts Ties With China Merchants Bank [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin price slips as China steps up regulation [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin price slips on China regulation [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Win .33 Bitcoin ($150 or so, Depending on BTC value) - Meme game for May 1st - Take My Bitcoins - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin May v0.9.1 GitHub Source Code Development Visualization - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Jaromil on Russia TV about Bitcoin - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Atomic-Trade Bitcoin Exchange. AML, BSA, FinCEN compliant - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Breaks Down Bitcoin - global economic crisis - max Keiser - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- The Bitcoin Group #27 - China Bans Bitcoin Again - Politics - Dark Market - Bitcoin VC - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Edan Yago - Free Market Bitcoin regulation and Honduras free trade zones.mp4 - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- btc.sx Bitcoin derivatives platform George Samman clip - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- China Bans Bitcoin Again -- Bitcoin the Movie -- Startup for Startups Raises 2,000 BTC - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Video: Roundup of This Week's Bitcoin News 25th April 2014 - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin and the Internet of Money - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Virgin Group founder Richard Branson, why he's decided to accept Bitcoin for space travel? - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin for Dummies - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Live Butterfly Labs Mining Cam- Take My BitCoins- win free Bitcoin - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Market Extra: Bitcoin is like the early Internet, minus the VC money [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- 'The Rise And Rise Of Bitcoin' Filmmaker: 'There Is No Answer Yet' [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin the movie: It just had to happen [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin Expo 2014: Fireside Chat with Dr Gavin Wood - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- reXBT.com Andreas M. Antonopoulos L.A. Bitcoin Meetup The Network Effect Part 2 of 8 - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin: what happens when the miners pack up their gear? [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- New Bitcoin student club at MIT will promote the virtual currency [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Dark Wallet Is About to Make Bitcoin Money Laundering Easier Than Ever [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin Vies with New Cryptocurrencies as Coin of the Cyber Realm [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- 4/29/14 - MIT Bitcoin Project, Mt Gox revival plan, Mastercard lobbyists & Team Rubicon - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Mini Bitcoin Mining Rig with 11 USB Block Erupter from ASICminer - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Is Bitcoin Over? Mt. Gox Pauses Withdrawals - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- BitCoin Dentist GoCoin Fox News Interview - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Blockchain Bitcoin BitMe iNjector Instant wallet funds adder - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin Generator Feb 2014 NO SURVEY - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Free Bitcoin Generator 2013 1 0v Download Miner Tool 2014 - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- MAX KEISER - BITCOIN Is The FUTURE - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- The Bitcoin Meetup - BitcoinMKE Hosts Jeffrey Tucker - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- MIT Bitcoin Expo 2014 - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin, gold and competitive currencies - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin Foundation Election Hiccups -- Pathetic Ohio Bans Bitcoins -- Dogecon SF 2014 - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Keiser Report: Gold, Silver, Bitcoin FTW! (E527) - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin Talk Show #7 -- Skype BitcoinTalkShow to Call in Live! 🙂 - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin Turbo Miner | Fast Bitcoin Generator | NEW [Updated April 2014] Direct Download! No waiting! - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Basic Bitcoin Bitches - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Gold standard vs Fiat vs Bitcoin - Truthloader - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin Exchange - Bitcoin Predictions & Live Market Action! - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- The Bitcoin Revolution is Just Beginning (Preview) - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- How to Defund the System: Bitcoin vs. the Central Banksters - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin, Anarchy and Freedom with Roger Ver - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- bitcoin dogecoin donations and i ramble a ton - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Techcrunch - Is Bitcoin or Litecoin The New Euro-Disrupt Europe 2013 (Part1) - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- MIT Goes Bitcoin-Wild [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Bitcoin Weekly 2014 April 30: Bloomberg adds Bitcoin to their market index, MIT to produce campus-wide bitcoin ... [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- 'Dark Wallet' wants to make Bitcoin even harder to trace [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Better than Bitcoin! Creating Multiple Sources of Income, Growing Tomatoes - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- What is Bitcoin? - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- James Altucher Discusses the Future of Twitter and the Bitcoin - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Bitcoin made simple (video animation) - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Jon Matonis: Bitcoin - The future of commerce? - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- $100 in Bitcoin Going to Every MIT Undergrad - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Should I Invest in Bitcoin? Stock Market Investment Advice Mining, Price, Exchange, Value - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- The Rise of Digital Currency (documentary) - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Bitcoin: How We Got Here and Where We Are Going [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- CIA Bitcoin CONSPIRACY, SILVER TO BREAK THE ECONOMY - Andy Hoffman & Chris Duane - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- 5/1/14 - Larry Summers warns critics, Paym system & Bitcoin Center NYC roundtable - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- On est Connect S2 #07 1/2 : BitCoin et Musique sur Internet - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]