区块容量之战此书的第十七章的英文版本现发布如下。全书可在亚马逊上购买。提醒大家，任何实体书籍销售利润的 50％ 将捐赠给无国界医生。 这是一家为受冲突、流行病、灾难或被排除在医疗保健体系之外的人们提供医疗援助的慈善机构。
The Blocksize War – Chapter 17 – User-Activated Softfork
The idea of a UASF in Bitcoin resolving the current stalemate and activating SegWit appears to also have originated from the pseudonymous developer Shaolinfry, in an email sent to the Bitcoin mailing list on February 25, 2017:
The Problem With Supermajority Hash Power Signaling Is It Draws Unnecessary Attention To Miners Which Can Become Unnecessarily Political. Already Misunderstood As A Vote, Miners May Feel Pressure To “Make A Decision” On Behalf Of The Community: Who Is And Isn’t Signalling Becomes A Huge Public Focus And May Put Pressures Onto Miners They Are Unprepared For. Some Miners May Not Be In A Position To Upgrade, Or May Prefer Not To Participate In The Soft Fork Which Is Their Right. However, That Miner May Now Become A Lone Reason That Vetoes Activation For Everyone, Where The Soft Fork Is An Opt-In Feature! This Situation Seems To Be Against The Voluntary Nature Of The Bitcoin System Where Participation At All Levels Is Voluntary And Kept Honest By Well Balanced Incentives.
The Alternative Discussed Here Is “Flag Day Activation” Where Nodes Begin Enforcement At A Predetermined Time In The Future. This Method Needs A Longer Lead Time Than A Hash Power Based Activation Trigger, But Offers A Number Of Advantages And Perhaps Provides A Better Tradeoff.
On March 12, 2017, Shaolinfry formalised his proposal and it became known as BIP 148. The idea was to force miners to flag support for SegWit by a consensus rule, thereby activating it. In a way, it was a softfork to activate another softfork. The forced miner flagging was scheduled to start on August 1, 2017, around four and a half months away. This could then activate the original SegWit softfork, before the activation window expired.
Segwit Increases The Blocksize, Fixes Transaction Malleability, And Makes Scripting Easier To Upgrade As Well As Bringing Many Other Benefits.
It Is Hoped That Miners Will Respond To This BIP By Activating Segwit Early, Before This BIP Takes Effect. Otherwise This BIP Will Cause The Mandatory Activation Of The Existing Segwit Deployment Before The End Of Midnight November 15th 2017.
All Times Are Specified According To Median Past Time.
This BIP Will Be Active Between Midnight August 1st 2017 (Epoch Time 1501545600) And Midnight November 15th 2017 (Epoch Time 1510704000) If The Existing Segwit Deployment Is Not Locked-In Or Activated Before Epoch Time 1501545600. This BIP Will Cease To Be Active When Segwit Is Locked-In.
While This BIP Is Active, All Blocks Must Set The NVersion Header Top 3 Bits To 001 Together With Bit Field (1<<1) (According To The Existing Segwit Deployment). Blocks That Do Not Signal As Required Will Be Rejected.
The idea was extremely controversial and a very risky move, from the small blockers point of view. Firstly, most of the small blocker narrative up until this point was about patience and only changing the consensus rules in a calm and safe manner. This was a dangerous upgrade: it required miners to flag support and, if they did not, it could result in a chain-split. Secondly, it was very risky because, if the BIP 148 UASF failed, which seemed very possible, it could hand the initiative to the larger blockers. At this point in the war, the large blockers had split into several factions: for example, between those that believed Craig Wright was Satoshi and those that thought he was a conman; between those that thought Bitcoin Unlimited was a robust idea and those that thought it was flawed; and between those that had left to launch new initial coin offerings and those who remained focused on Bitcoin. However, to their credit, up until this point the small blockers had been mostly united. This was a key strength for the small blocker side and helped them gain a lot of traction in the war. This controversial play from the small block camp risked splitting them in two, which could have been devastating for their cause.
For instance, Gregory Maxwell, one of the most influential thinkers on the small blocker side, opposed the UASF and clearly articulated this view in an email on April 14, 2017:
I Do Not Support The BIP148 UASF For Some Of The Same Reasons That I Do Support Segwit: Bitcoin Is Valuable In Part Because It Has High Security And Stability, Segwit Was Carefully Designed To Support And Amplify That Engineering Integrity That People Can Count On Now And Into The Future.
I Do Not Feel The (Sic) Approach Proposed In BIP148 Really Measures Up To The Standard Set By Segwit Itself, Or The Existing Best Practices In Protocol Development In This Community.
The Primary Flaw In BIP148 Is That By Forcing The Activation Of The Existing (Non-UASF Segwit) Nodes It Almost Guarantees At A Minor Level Of Disruption.
Segwit Was Carefully Engineered So That Older Unmodified Miners Could Continue Operating _completely_ Without Interruption After Segwit Activates.
Older Nodes Will Not Include Segwit Spends, And So Their Blocks Will Not Be Invalid Even If They Do Not Have Segwit Support. They Can Upgrade To It On Their Own Schedule. The Only Risk Non-Participating Miners Take After Segwit Activation Is That If Someone Else Mines An Invalid Block They Would Extend It, A Risk Many Miners Already Frequently Take With Spy-Mining.
I Do Not Think It Is A Horrible Proposal: It Is Better Engineered Than Many Things That Many Altcoins Do, But Just Not Up To Our Normal Standards. I Respect The Motivations Of The Authors Of BIP 148. If Your Goal Is The Fastest Possible Segwit Activation Then It Is Very Useful To Exploit The >80% Of Existing Nodes That Already Support The Original Version Of Segwit.
But The Fastest Support Should Not Be Our Goal, As A Community– There Is Always Some Reckless Altcoin Or Centralized System That Can Support Something Faster Than We Can– Trying To Match That Would Only Erode Our Distinguishing Value In Being Well Engineered And Stable.
“First Do No Harm.” We Should Use The Least Disruptive Mechanisms Available, And The BIP148 Proposal Does Not Meet That Test. To Hear Some People– Non-Developers On Reddit And Such– A Few Even See The Forced Orphaning Of 148 As A Virtue, That It’s Punitive For Misbehaving Miners. I Could Not (Sic) Disagree With That Perspective Any More Strongly.
Of Course, I Do Not Oppose The General Concept Of A UASF But _generally_ A Soft-Fork (Of Any Kind) Does Not Need To Risk Disruption Of Mining, Just As Segwit’s Activation Does Not. UASF Are The Original Kind Of Soft-Fork And Were The Only Kind Of Fork Practiced By Satoshi. P2SH Was Activated Based On A Date, And All Prior Ones Were Based On Times Or Heights. We Introduced Miner Based Activation As Part Of A Process Of Making Bitcoin More Stable In The Common Case Where The Ecosystem Is All In Harmony. It’s Kind Of Weird To See UASF Portrayed As Something New.
It’s Important The Users Not Be At The Mercy Of Any One Part Of The Ecosystem To The Extent That We Can Avoid It– Be It Developers, Exchanges, Chat Forums, Or Mining Hardware Makers. Ultimately The Rules Of Bitcoin Work Because They’re Enforced By The Users Collectively– That Is What Makes Bitcoin Bitcoin, It’s What Makes It Something People Can Count On: The Rules Aren’t Easy To Just Change.
There Have Been Some Other UASF Proposals That Avoid The Forced Disruption– By Just Defining A New Witness Bit And Allowing Non-Upgraded-To-Uasf Miners And Nodes To Continue As Non-Upgraded, I Think They Are Vastly Superior. They Would Be Slower To Deploy, But I Do Not Think That Is A Flaw.
We Should Have Patience. Bitcoin Is A System That Should Last For All Ages And Power Mankind For A Long Time– Ten Years From Now A Couple Years Of Dispute Will Seem Like Nothing. But The Reputation We Earn For Stability And Integrity, For Being A System Of Money People Can Count On Will Mean Everything.
If These Discussions Come Up, They’ll Come Up In The Form Of Reminding People That Bitcoin Isn’t Easily Changed At A Whim, Even When The Whims Are Obviously Good, And How That Protects It From Being Managed Like All The Competing Systems Of Money That The World Used To Use Were Managed. 🙂
So Have Patience, Don’t Take Short Cuts. Segwit Is A Good Improvement And We Should Respect It By Knowing That It’s Good Enough To Wait For, And For However Its Activated To Be Done The Best Way We Know How.
One of the first well-known Bitcoin developers to support the UASF was Luke Dashjr, the developer who discovered how it was possible to make SegWit a softfork in the first place. Luke had really stuck his neck out here, supporting the alternative consensus rules when almost nobody else did. However, given his personality, this wasn’t likely to bother him, and didn’t seem to. One of the most respected developers in the small block camp, Pieter Wuille, who had written much of the code for the SegWit softfork, also opposed BIP 148. In May 2017, in an internet relay chat with Luke, Pieter made the following comments:
My Expectation Is That Every Economically Relevant Full Node Will Revert Away From Bip148 Code Hours After The Hashrate Fails To Adopts It
Luke-Jr: I Think You’re Insane
It should be noted that Pieter quickly apologised for the “insane” comment. Given the views of developers such as Pieter and Gregory, it now seemed extremely unlikely that Bitcoin Core would release a client which implemented BIP 148. If the UASF plan was to succeed, small blockers would, ironically, have to run an alternative client with different consensus rules, just as the large blockers had done with Bitcoin XT, Bitcoin Classic and Bitcoin Unlimited.
This is exactly what happened: Luke eventually released a client implementing BIP 148, with the user agent tag “/Satoshi:0.14.2/UASF-Segwit:0.3(BIP148)/”. Users were also encouraged to keep running Bitcoin Core and change the user agent ID to show support for BIP 148, which also appeared to be a popular practice at the time. Some argued that this was a bad practice since the client did not actually implement BIP148 rules, however others responded that this was about intentions and it indicated the users would upgrade prior to August 1. Some pointed out that this was a bit hypocritical, as this was exactly the kind of behaviour which small blockers had ridiculed and criticised the large blockers for.
In early May 2017, I sat down in Hong Kong for a chat with one of the most significant behind-the-scenes proponents of the UASF. The developer I spoke to had written code for the UASF client and maintained several of the pro-UASF campaign websites. I explained to him that the UASF was risky and that it was important to be patient with the Bitcoin consensus rules. He gave a long and robust response. “In normal times, you are correct”, he asserted, “however, these are not normal times, we are in war.” He continued: “Bitcoin is in a crisis situation, Bitmain is maliciously exploiting the ASICBoost vulnerability, SegWit fixes this vulnerability and we need to urgently fix this. It is an emergency situation and therefore we do not have time for the normal, patient approach.” He went on to explain that, in a war, you do not always have the luxury of choosing the right time. He appreciated that the UASF activation was only a few months away, but he explained that the small blockers were currently in a dominant position in the war and there was no guarantee this would last. “Now is the time to get the big weapons out,” he proclaimed, “when we are strong.” He continued: “We have no other choice, we need to act now, go nuclear and decisively win this war, for the future of Bitcoin. If we do not, we risk defeat and Bitcoin will be dead.” This developer appeared to have thought through all the scenarios and was convinced BIP 148 would work. In his mind, the fact that BIP 148 was a softfork, a subset of the current consensus rules, was a significant advantage and would help force miners to switch to the BIP 148 chain. His view was that BIP 148 was a threat and miners would cave from the pressure early, activating SegWit, such that the softfork in August 2017 would never actually occur. “BIP 148 contains code such that it doesn’t apply if SegWit is already activated,” he explained.
While, initially, the idea was controversial within the small block camp, by May 2017 it had gained significant traction. The Dragons’ Den was now in full campaign mode, supporting BIP 148 and the UASF. Samson Mow had even organised, sold and distributed a hat with the letters UASF embroidered on the front. This hat was typically in military colours and worn by small blockers at Bitcoin conferences and events to indicate their support for this grassroots campaign. At this point, UASF discussion was only prevalent inside the small block community, while the large blockers and the wider cryptocurrency industry mostly ignored it. It was only towards the end of May 2017 when the idea became more widely explored outside of the small block camp.
From a tactical point of view, the large blockers were too slow to react and too slow to understand the UASF. Large blockers should have seen the potential split in the small block camp and attempted to highlight and exploit it, just as the small blockers had done with potential splits in the large blocker camp. Instead, they mostly ignored the UASF. Towards the end of May, I spoke to one of the most prominent large blockers to discuss the UASF. He explained to me that he did not believe Gregory Maxwell really opposed the UASF; it was just his “normal lies and games”, he explained. It seemed that, by this point, the level of mistrust was so high that, combined with a very different understanding of how Bitcoin works, the large blockers were almost unable to tell what the small blockers were up to. It seemed to me that the small blockers had finally made their move and left an opening. If this war was to continue, the large blockers needed to react and exploit the opening, but they did not appear to understand what to do.
The large blockers also seemed genuinely concerned by the UASF. At the start of the war, they had greatly underestimated the size and influence of the small blocker camp, expecting an easy victory in the war. The large blockers often derided the small blockers as insignificant and naive. At this point, however, after three failed hardfork attempts – defeats which took them by surprise – most large blockers now appeared to overestimate the power and influence of the small blockers. In reality, the smaller blockers were far less powerful than they thought; the main reason for their success in defeating the large blockers up until this point was their superior understanding of Bitcoin, tactical blunders from the large blockers themselves and Bitcoin’s inherent resilience against contentious protocol rule changes. Due to an incomplete understanding, at least to some extent, the large blockers instead blamed their defeats on shrewd manoeuvring from the cunning and powerful small blockers. Therefore, the large blockers seemed to revere the small blockers and many of them feared the UASF, which they saw as the next big play by the small blockers. They were blind to the tactical opportunity it gave them. An opportunity they therefore failed to exploit.
At this point, the UASF had almost no support from the cryptocurrency exchanges. Most exchange CEOs I spoke to at the time either expected the UASF to fail, or they did not even know what it was. The level of economic support for the UASF outside of the small block camp was tiny. This was a risky move from the small blockers, and it seemed likely to me they may be left behind on a lower proof-of-work blockchain not regarded as Bitcoin. What the large blockers should have considered was the release of a “counter-softfork”, which banned the BIP 148 flags in the blocks. This chain would likely have the economic majority and the majority hashrate. This counter UASF would have also ensured it was a clean split, with the non-UASF chain no longer vulnerable to wipeout. However, this is simply not how the large blockers thought. They wanted a hardfork blocksize increase; they didn’t have the expertise or desire to implement a counter-softfork.
Jihan Wu appeared extremely angered by the UASF campaign. To him, a UASF undermined the narrative he had built that miners had significant influence over the protocol rules. On May 28, 2017, Jihan Tweeted with the tag #UASF alongside a picture of the murder victims of the Jonestown massacre. The anger and fear he had for the UASF appeared to be strong.
In mid-June, the exchange ViaBTC, which was linked to Jihan Wu, listed BIP 148 futures on the platform. This was clearly an idea taken from Bitfinex a few months earlier and their Bitcoin Unlimited token. It was an attempt to undermine BIP 148, just like the Bitfinex futures had undermined Bitcoin Unlimited. However, the contract terms were quite odd and somewhat rigged. If one invested in the BIP 148 token, you could only get a payout if both the BIP 148 token chain and the original rules chain (the non-BIP 148 chain) continued to exist. This is clearly not what BIP 148 backers wanted. They believed the original rules chain would cease to exist, in particular because the original rules chain was vulnerable to wipeout from the BIP 148 chain. Therefore, investing in a token dependent on the continued existence of the non-BIP 148 chain made little sense for BIP 148 supporters. The contract failed to achieve any significant trading volume and it did not appear to undermine the BIP 148 cause.
On June 14, 2017, Bitmain published a blog which outlined a contingency plan in response to the UASF:
BIP148 Is Very Dangerous For Exchanges And Other Business. There Is No Sign Of Significant Economic Support Behind BIP148 And When It Is Alive As A Blockchain, The Economic Support Would Most Likely Be Based On Speculation. The Mining Activity Behind A UASF Chain May Stop Without Notice, And Investors Who Buy In The BIP148 Propaganda May Lose All Their Investment. Any Exchanges That Decide To Support A UASF Token After The Forking Point Need To Consider The Stagnation Risk Attached To It.
The UASF Chain Presents A Risk Of The Original Chain Being Wiped Out. If There Is No Contingency Plan, All Economic Activity That Occurs On The Original Chain After The UASF Forking Point Will Face The Risk Of Being Wiped Out. This Has Disastrous Consequences For The Entire Bitcoin Ecosystem. UASF Is An Attack Against Users And Enterprises Who Disagree With Activating SegWit Right Now Without A Block Size Increase, Which Is A Very Important Clause In The Hong Kong Agreement Made By The Global Bitcoin Community In February, 2016.
This Plan Is For A User Activated Hard Fork, Or UAHF
Bitmain Will Mine The Chain For A Minimum Of 72 Hours After The BIP148 Forking Point With A Certain Percentage Of Hash Rate Supplied By Our Own Mining Operations. Bitmain Will Likely Not Release Immediately The Mined Blocks To The Public Network Unless Circumstances Call For It, Which Means That Bitmain Will Mine Such Chain Privately First. We Intend In The Following Situations To Release The Mined Blocks To The Public (Non-Exhaustive List):
The BIP148 Chain Is Activated And Subsequently Gains Significant Support From The Mining Industry, I.E. After BIP148 Has Already Successfully Split The Chain;
Market Sentiment For A Big Block Hard Fork Is Strong, And Economic Rationale Drives Us To Mine It, For Example, The Exchange Rate Is In Favor Of Big-Block Bitcoin;
If There Is Already A Significant Amount Of Other Miners Mining A Big-Block Chain Publicly And We Decide That It Is Rational For Us To Mine On Top Of That Chain. In Such A Case, We Will Also Consider Joining That Chain And Give Up Our Privately Mined Chain So That The Public UAHF Chain Will Not Be Under The Risk Of Being Reorganized.
Once Bitmain Starts To Mine A UAHF Chain Publicly, We Will Mine It Persistently And Ignore Short-Term Economic Incentives. We Believe A Roadmap Including The Option To Adjust Block Size Will Serve Users Better So We Expect It To Attract A Higher Market Price In The Long Term.
The Bitmain plan was to activate a hardfork at around the same time as the UASF was due to activate, which would increase the blocksize limit. The hardfork plan even included a blocksize limit increase schedule. The blocksize limit would start at 2 MB in August 2017, then gradually increase in additional, pre-determined steps to 16.8 MB by August 2019. This plan appeared to be some kind of threat, aimed at the UASF proponents. The large blockers would get their new hardfork chain, something they perceived the small blockers were desperately hoping to prevent them from achieving.
Although Jihan did not appear to realise it, this plan was actually incredibly favourable to the UASF cause, because it meant that the UASF chain was more likely to obtain the proof-of-work lead over the original rules chain, since Bitmain indicated it had planned to move away to an alternative hardfork chain. In addition to this, Bitmain planned to mine the new hardfork chain in secret, for a 72-hour period. This was a very bad move, if the plan was for the hardforked chain to gain any traction, since nobody would be able to see the chain, or run a client supporting it, and exchanges would not be able to support the token. It is unclear what had motivated this blogpost. It appears as if Jihan was extremely angry and quickly developed a plan designed to frustrate his opponents, but had not thought it through at all. What Jihan should have announced, of course, is that, in the event of the UASF, he would keep mining the original rules chain and meanwhile arranged a counter UASF. However, this would have left him stuck with 1 MB blocks, so maybe he felt he did not have much of an option.
Within the Dragons’ Den, the small blockers celebrated the Bitmain blogpost with delight, as it almost assured them of complete victory. However, some took a more cautious tone, “just because Jihan says that he will do something stupid, don’t assume he will”. It seemed to me that this more cautious stance was the correct approach. As August 1 got closer, Jihan would very likely realise that his plan made no sense and pivot to something else more effective.
As the UASF deadline approached, the large blockers were on the back foot as they did not know how to effectively respond. It was almost as if they had no viable options left. It looked like the large blockers were finally heading for a humiliating defeat, and they knew it. They needed some kind of face-saving exercise.