{"type":"rich","version":"1.0","author_name":"npub1mlpmsc5sm93tw2fp2dhhuwmxcqm59wz6hjg5g3afq5rucfll3f9sh4yf8d","author_url":"https://nostr.ae/npub1mlpmsc5sm93tw2fp2dhhuwmxcqm59wz6hjg5g3afq5rucfll3f9sh4yf8d","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2017-06-07\n📝 Original message:While this isn't an unreasonable proposal, it will orphan blocks from any\nminer who isn't running it (or BIP148) by Aug 1, right?  That seems rather\nrushed for a non-backwards-compatible SF, especially since in practice,\nminers are unlikely to deploy it until it comes bundled with some version\nof the Segwit2x HF code.\n\nI realize this is a touchy topic but - how much hard evidence is there that\nthere *will* be significant disruption if miners simply ignore both this\nand BIP148?  Correct me but afaict, BIP148 has ~0% hashrate support.\n\nUnless the HF code is ready and agree on soon (say by Jul 1), my vote is to\nkeep the main chain backwards-compatible, especially if evidence of miner\nsupport for BIP148 doesn't materialize soon.  It seems less disruptive for\nrecently-deployed BIP148 nodes to revert than to ask every miner in the\nsystem to quickly upgrade or get orphaned.\n\nJust my view, I respect that others will differ.\n\n\nOn Tue, Jun 6, 2017 at 9:54 PM, James Hilliard via bitcoin-dev \u003c\nbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\n\u003e This is a BIP8 style soft fork so mandatory signalling will be active\n\u003e after Aug 1st regardless.\n\u003e\n\u003e On Tue, Jun 6, 2017 at 8:51 PM, Tao Effect \u003ccontact at taoeffect.com\u003e wrote:\n\u003e \u003e What is the probability that a 65% threshold is too low and can allow a\n\u003e \u003e \"surprise miner attack\", whereby miners are kept offline before the\n\u003e \u003e deadline, and brought online immediately after, creating potential havoc?\n\u003e \u003e\n\u003e \u003e (Nit: \"simple majority\" usually refers to \u003e50%, I think, might cause\n\u003e \u003e confusion.)\n\u003e \u003e\n\u003e \u003e -Greg Slepak\n\u003e \u003e\n\u003e \u003e --\n\u003e \u003e Please do not email me anything that you are not comfortable also sharing\n\u003e \u003e with the NSA.\n\u003e \u003e\n\u003e \u003e On Jun 6, 2017, at 5:56 PM, James Hilliard via bitcoin-dev\n\u003e \u003e \u003cbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\u003e \u003e\n\u003e \u003e Due to the proposed calendar(https://segwit2x.github.io/) for the\n\u003e \u003e SegWit2x agreement being too slow to activate SegWit mandatory\n\u003e \u003e signalling ahead of BIP148 using BIP91 I would like to propose another\n\u003e \u003e option that miners can use to prevent a chain split ahead of the Aug\n\u003e \u003e 1st BIP148 activation date.\n\u003e \u003e\n\u003e \u003e The splitprotection soft fork is essentially BIP91 but using BIP8\n\u003e \u003e instead of BIP9 with a lower activation threshold and immediate\n\u003e \u003e mandatory signalling lock-in. This allows for a majority of miners to\n\u003e \u003e activate mandatory SegWit signalling and prevent a potential chain\n\u003e \u003e split ahead of BIP148 activation.\n\u003e \u003e\n\u003e \u003e This BIP allows for miners to respond to market forces quickly ahead\n\u003e \u003e of BIP148 activation by signalling for splitprotection. Any miners\n\u003e \u003e already running BIP148 should be encouraged to use splitprotection.\n\u003e \u003e\n\u003e \u003e \u003cpre\u003e\n\u003e \u003e  BIP: splitprotection\n\u003e \u003e  Layer: Consensus (soft fork)\n\u003e \u003e  Title: User Activated Soft Fork Split Protection\n\u003e \u003e  Author: James Hilliard \u003cjames.hilliard1 at gmail.com\u003e\n\u003e \u003e  Comments-Summary: No comments yet.\n\u003e \u003e  Comments-URI:\n\u003e \u003e  Status: Draft\n\u003e \u003e  Type: Standards Track\n\u003e \u003e  Created: 2017-05-22\n\u003e \u003e  License: BSD-3-Clause\n\u003e \u003e           CC0-1.0\n\u003e \u003e \u003c/pre\u003e\n\u003e \u003e\n\u003e \u003e ==Abstract==\n\u003e \u003e\n\u003e \u003e This document specifies a coordination mechanism for a simple majority\n\u003e \u003e of miners to prevent a chain split ahead of BIP148 activation.\n\u003e \u003e\n\u003e \u003e ==Definitions==\n\u003e \u003e\n\u003e \u003e \"existing segwit deployment\" refer to the BIP9 \"segwit\" deployment\n\u003e \u003e using bit 1, between November 15th 2016 and November 15th 2017 to\n\u003e \u003e activate BIP141, BIP143 and BIP147.\n\u003e \u003e\n\u003e \u003e ==Motivation==\n\u003e \u003e\n\u003e \u003e The biggest risk of BIP148 is an extended chain split, this BIP\n\u003e \u003e provides a way for a simple majority of miners to eliminate that risk.\n\u003e \u003e\n\u003e \u003e This BIP provides a way for a simple majority of miners to coordinate\n\u003e \u003e activation of the existing segwit deployment with less than 95%\n\u003e \u003e hashpower before BIP148 activation. Due to time constraints unless\n\u003e \u003e immediately deployed BIP91 will likely not be able to enforce\n\u003e \u003e mandatory signalling of segwit before the Aug 1st activation of\n\u003e \u003e BIP148. This BIP provides a method for rapid miner activation of\n\u003e \u003e SegWit mandatory signalling ahead of the BIP148 activation date. Since\n\u003e \u003e the primary goal of this BIP is to reduce the chance of an extended\n\u003e \u003e chain split as much as possible we activate using a simple miner\n\u003e \u003e majority of 65% over a 504 block interval rather than a higher\n\u003e \u003e percentage. This BIP also allows miners to signal their intention to\n\u003e \u003e run BIP148 in order to prevent a chain split.\n\u003e \u003e\n\u003e \u003e ==Specification==\n\u003e \u003e\n\u003e \u003e While this BIP is active, all blocks must set the nVersion header top\n\u003e \u003e 3 bits to 001 together with bit field (1\u003c\u003c1) (according to the\n\u003e \u003e existing segwit deployment). Blocks that do not signal as required\n\u003e \u003e will be rejected.\n\u003e \u003e\n\u003e \u003e ==Deployment==\n\u003e \u003e\n\u003e \u003e This BIP will be deployed by \"version bits\" with a 65%(this can be\n\u003e \u003e adjusted if desired) activation threshold BIP9 with the name\n\u003e \u003e \"splitprotecion\" and using bit 2.\n\u003e \u003e\n\u003e \u003e This BIP starts immediately and is a BIP8 style soft fork since\n\u003e \u003e mandatory signalling will start on midnight August 1st 2017 (epoch\n\u003e \u003e time 1501545600) regardless of whether or not this BIP has reached its\n\u003e \u003e own signalling threshold. This BIP will cease to be active when segwit\n\u003e \u003e is locked-in.\n\u003e \u003e\n\u003e \u003e === Reference implementation ===\n\u003e \u003e\n\u003e \u003e \u003cpre\u003e\n\u003e \u003e // Check if Segregated Witness is Locked In\n\u003e \u003e bool IsWitnessLockedIn(const CBlockIndex* pindexPrev, const\n\u003e \u003e Consensus::Params\u0026 params)\n\u003e \u003e {\n\u003e \u003e    LOCK(cs_main);\n\u003e \u003e    return (VersionBitsState(pindexPrev, params,\n\u003e \u003e Consensus::DEPLOYMENT_SEGWIT, versionbitscache) ==\n\u003e \u003e THRESHOLD_LOCKED_IN);\n\u003e \u003e }\n\u003e \u003e\n\u003e \u003e // SPLITPROTECTION mandatory segwit signalling.\n\u003e \u003e if ( VersionBitsState(pindex-\u003epprev, chainparams.GetConsensus(),\n\u003e \u003e Consensus::DEPLOYMENT_SPLITPROTECTION, versionbitscache) ==\n\u003e \u003e THRESHOLD_LOCKED_IN \u0026\u0026\n\u003e \u003e     !IsWitnessLockedIn(pindex-\u003epprev, chainparams.GetConsensus()) \u0026\u0026\n\u003e \u003e // Segwit is not locked in\n\u003e \u003e     !IsWitnessEnabled(pindex-\u003epprev, chainparams.GetConsensus()) ) //\n\u003e \u003e and is not active.\n\u003e \u003e {\n\u003e \u003e    bool fVersionBits = (pindex-\u003enVersion \u0026 VERSIONBITS_TOP_MASK) ==\n\u003e \u003e VERSIONBITS_TOP_BITS;\n\u003e \u003e    bool fSegbit = (pindex-\u003enVersion \u0026\n\u003e \u003e VersionBitsMask(chainparams.GetConsensus(),\n\u003e \u003e Consensus::DEPLOYMENT_SEGWIT)) != 0;\n\u003e \u003e    if (!(fVersionBits \u0026\u0026 fSegbit)) {\n\u003e \u003e        return state.DoS(0, error(\"ConnectBlock(): relayed block must\n\u003e \u003e signal for segwit, please upgrade\"), REJECT_INVALID, \"bad-no-segwit\");\n\u003e \u003e    }\n\u003e \u003e }\n\u003e \u003e\n\u003e \u003e // BIP148 mandatory segwit signalling.\n\u003e \u003e int64_t nMedianTimePast = pindex-\u003eGetMedianTimePast();\n\u003e \u003e if ( (nMedianTimePast \u003e= 1501545600) \u0026\u0026  // Tue 01 Aug 2017 00:00:00 UTC\n\u003e \u003e     (nMedianTimePast \u003c= 1510704000) \u0026\u0026  // Wed 15 Nov 2017 00:00:00 UTC\n\u003e \u003e     (!IsWitnessLockedIn(pindex-\u003epprev, chainparams.GetConsensus()) \u0026\u0026\n\u003e \u003e // Segwit is not locked in\n\u003e \u003e      !IsWitnessEnabled(pindex-\u003epprev, chainparams.GetConsensus())) )\n\u003e \u003e // and is not active.\n\u003e \u003e {\n\u003e \u003e    bool fVersionBits = (pindex-\u003enVersion \u0026 VERSIONBITS_TOP_MASK) ==\n\u003e \u003e VERSIONBITS_TOP_BITS;\n\u003e \u003e    bool fSegbit = (pindex-\u003enVersion \u0026\n\u003e \u003e VersionBitsMask(chainparams.GetConsensus(),\n\u003e \u003e Consensus::DEPLOYMENT_SEGWIT)) != 0;\n\u003e \u003e    if (!(fVersionBits \u0026\u0026 fSegbit)) {\n\u003e \u003e        return state.DoS(0, error(\"ConnectBlock(): relayed block must\n\u003e \u003e signal for segwit, please upgrade\"), REJECT_INVALID, \"bad-no-segwit\");\n\u003e \u003e    }\n\u003e \u003e }\n\u003e \u003e \u003c/pre\u003e\n\u003e \u003e\n\u003e \u003e https://github.com/bitcoin/bitcoin/compare/0.14...\n\u003e jameshilliard:splitprotection-v0.14.1\n\u003e \u003e\n\u003e \u003e ==Backwards Compatibility==\n\u003e \u003e\n\u003e \u003e This deployment is compatible with the existing \"segwit\" bit 1\n\u003e \u003e deployment scheduled between midnight November 15th, 2016 and midnight\n\u003e \u003e November 15th, 2017. This deployment is also compatible with the\n\u003e \u003e existing BIP148 deployment. This BIP is compatible with BIP91 only if\n\u003e \u003e BIP91 activates before it and before BIP148. Miners will need to\n\u003e \u003e upgrade their nodes to support splitprotection otherwise they may\n\u003e \u003e build on top of an invalid block. While this bip is active users\n\u003e \u003e should either upgrade to splitprotection or wait for additional\n\u003e \u003e confirmations when accepting payments.\n\u003e \u003e\n\u003e \u003e ==Rationale==\n\u003e \u003e\n\u003e \u003e Historically we have used IsSuperMajority() to activate soft forks\n\u003e \u003e such as BIP66 which has a mandatory signalling requirement for miners\n\u003e \u003e once activated, this ensures that miners are aware of new rules being\n\u003e \u003e enforced. This technique can be leveraged to lower the signalling\n\u003e \u003e threshold of a soft fork while it is in the process of being deployed\n\u003e \u003e in a backwards compatible way. We also use a BIP8 style timeout to\n\u003e \u003e ensure that this BIP is compatible with BIP148 and that BIP148\n\u003e \u003e compatible mandatory signalling activates regardless of miner\n\u003e \u003e signalling levels.\n\u003e \u003e\n\u003e \u003e By orphaning non-signalling blocks during the BIP9 bit 1 \"segwit\"\n\u003e \u003e deployment, this BIP can cause the existing \"segwit\" deployment to\n\u003e \u003e activate without needing to release a new deployment. As we approach\n\u003e \u003e BIP148 activation it may be desirable for a majority of miners to have\n\u003e \u003e a method that will ensure that there is no chain split.\n\u003e \u003e\n\u003e \u003e ==References==\n\u003e \u003e\n\u003e \u003e *[https://lists.linuxfoundation.org/pipermail/\n\u003e bitcoin-dev/2017-March/013714.html\n\u003e \u003e Mailing list discussion]\n\u003e \u003e *[https://github.com/bitcoin/bitcoin/blob/v0.6.0/src/main.\n\u003e cpp#L1281-L1283\n\u003e \u003e P2SH flag day activation]\n\u003e \u003e *[[bip-0009.mediawiki|BIP9 Version bits with timeout and delay]]\n\u003e \u003e *[[bip-0016.mediawiki|BIP16 Pay to Script Hash]]\n\u003e \u003e *[[bip-0091.mediawiki|BIP91 Reduced threshold Segwit MASF]]\n\u003e \u003e *[[bip-0141.mediawiki|BIP141 Segregated Witness (Consensus layer)]]\n\u003e \u003e *[[bip-0143.mediawiki|BIP143 Transaction Signature Verification for\n\u003e \u003e Version 0 Witness Program]]\n\u003e \u003e *[[bip-0147.mediawiki|BIP147 Dealing with dummy stack element\n\u003e malleability]]\n\u003e \u003e *[[bip-0148.mediawiki|BIP148 Mandatory activation of segwit deployment]]\n\u003e \u003e *[[bip-0149.mediawiki|BIP149 Segregated Witness (second deployment)]]\n\u003e \u003e *[https://bitcoincore.org/en/2016/01/26/segwit-benefits/ Segwit\n\u003e benefits]\n\u003e \u003e\n\u003e \u003e ==Copyright==\n\u003e \u003e\n\u003e \u003e This document is dual licensed as BSD 3-clause, and Creative Commons\n\u003e \u003e CC0 1.0 Universal.\n\u003e \u003e _______________________________________________\n\u003e \u003e bitcoin-dev mailing list\n\u003e \u003e bitcoin-dev at lists.linuxfoundation.org\n\u003e \u003e https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev\n\u003e \u003e\n\u003e \u003e\n\u003e _______________________________________________\n\u003e bitcoin-dev mailing list\n\u003e bitcoin-dev at lists.linuxfoundation.org\n\u003e https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev\n\u003e\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20170607/27553471/attachment-0001.html\u003e"}
