summaryrefslogtreecommitdiff
path: root/49
diff options
context:
space:
mode:
authorTier Nolan <tier.nolan@gmail.com>2015-08-19 19:17:15 +0100
committerbitcoindev <bitcoindev@gnusha.org>2015-08-19 18:17:17 +0000
commit86cd69b43e80c84b50f53a79e04a81a576ffe282 (patch)
tree931960ed4710b54e82389196857e42cd6413a5f3 /49
parentde8b8d87b886d69ee6faff64a802b74783e9f972 (diff)
downloadpi-bitcoindev-86cd69b43e80c84b50f53a79e04a81a576ffe282.tar.gz
pi-bitcoindev-86cd69b43e80c84b50f53a79e04a81a576ffe282.zip
Re: [bitcoin-dev] CLTV/CSV/etc. deployment considerations due to XT/Not-BitcoinXT miners
Diffstat (limited to '49')
-rw-r--r--49/5666ab6667f435ea84f44fb656922da2a4b568128
1 files changed, 128 insertions, 0 deletions
diff --git a/49/5666ab6667f435ea84f44fb656922da2a4b568 b/49/5666ab6667f435ea84f44fb656922da2a4b568
new file mode 100644
index 000000000..d67c1eb22
--- /dev/null
+++ b/49/5666ab6667f435ea84f44fb656922da2a4b568
@@ -0,0 +1,128 @@
+Return-Path: <tier.nolan@gmail.com>
+Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
+ [172.17.192.35])
+ by mail.linuxfoundation.org (Postfix) with ESMTPS id BDABA8E8
+ for <bitcoin-dev@lists.linuxfoundation.org>;
+ Wed, 19 Aug 2015 18:17:17 +0000 (UTC)
+X-Greylist: whitelisted by SQLgrey-1.7.6
+Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com
+ [209.85.220.182])
+ by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 52FB4102
+ for <bitcoin-dev@lists.linuxfoundation.org>;
+ Wed, 19 Aug 2015 18:17:17 +0000 (UTC)
+Received: by qkfh127 with SMTP id h127so5263957qkf.1
+ for <bitcoin-dev@lists.linuxfoundation.org>;
+ Wed, 19 Aug 2015 11:17:15 -0700 (PDT)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
+ h=mime-version:in-reply-to:references:date:message-id:subject:from:to
+ :cc:content-type;
+ bh=JZl4DTB17RXnMg0vtUWCOD4e0pB9vpMLU7QFcVUeqBg=;
+ b=xO7NHVoqMysu3n9fF73w3BPuGM9bpEjLa10TqJDAjSFqi9kR+BPjBDk106TnrqiB07
+ RoOTzyhZ5vUdRrXeNarjwS2AdU+cBBmDWfvfD+hlzXh27Nc8b98g/jy1frSNqSNsaJXH
+ 2qywv8M0nUwLSDKJPa6CWjHpmWhBpyTmRxx/t2hDaIum7quj4sM4/KQt8eXo0KuOsSUN
+ WR9A6g/Xzj9PwlmqI3OAbL/+qKoxma57FOgCcWvfScSL37TFOAdWmkf259sNTlKcwBnS
+ F47Z1//mjqnMpkVYiUI8KfU7HZ9PD3yz12s8m3gvm6eZDCJiu0W2mPzeNl+IK9dQg0J+
+ oZGQ==
+MIME-Version: 1.0
+X-Received: by 10.55.215.144 with SMTP id t16mr25057008qkt.107.1440008235703;
+ Wed, 19 Aug 2015 11:17:15 -0700 (PDT)
+Received: by 10.140.31.181 with HTTP; Wed, 19 Aug 2015 11:17:15 -0700 (PDT)
+In-Reply-To: <CADJgMzsvAfJnW1DDD6t3qkBcQRLb4HMqG27k51LhXJqxC6-z4g@mail.gmail.com>
+References: <20150819055036.GA19595@muck>
+ <CAOG=w-unJ+xnWFgiBO3jmgj4Q72ZH6-LOn08TwUF58trc-_WWg@mail.gmail.com>
+ <CABm2gDpBLKxKbHyWocOuyfO1VZ45yM7U1t+zVL_13LP9veXmcA@mail.gmail.com>
+ <CADJgMztmgUzy70sJ+_Xj-OFe-kvEi6eSAYoGTb4yg-yGQ9u1dw@mail.gmail.com>
+ <CABm2gDqRycGY2diXoTvL+d5JE0EgccgGdiQdgWj8c_9SMokJEw@mail.gmail.com>
+ <CADJgMztysqVya1nnRatyav5rqcpEZ81CmXxW0ZqwJoLN7W2=hg@mail.gmail.com>
+ <CAE-z3OVAJcnFn21F9QTGCf=NZrLQ9hAtj_tqSCboQGCfFSvq=Q@mail.gmail.com>
+ <CADJgMzsvAfJnW1DDD6t3qkBcQRLb4HMqG27k51LhXJqxC6-z4g@mail.gmail.com>
+Date: Wed, 19 Aug 2015 19:17:15 +0100
+Message-ID: <CAE-z3OV=sEd18JY1raVf5j9XTnEZ+vovkuQw57V9UoSXh6Affw@mail.gmail.com>
+From: Tier Nolan <tier.nolan@gmail.com>
+To: Btc Drak <btcdrak@gmail.com>
+Content-Type: multipart/alternative; boundary=001a114661985ce5bc051dae0b0e
+X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
+ DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW
+ autolearn=ham version=3.3.1
+X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
+ smtp1.linux-foundation.org
+Cc: Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>
+Subject: Re: [bitcoin-dev] CLTV/CSV/etc. deployment considerations due to
+ XT/Not-BitcoinXT miners
+X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
+X-Mailman-Version: 2.1.12
+Precedence: list
+List-Id: Bitcoin Development Discussion <bitcoin-dev.lists.linuxfoundation.org>
+List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
+ <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
+List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
+List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
+List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
+List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
+ <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
+X-List-Received-Date: Wed, 19 Aug 2015 18:17:17 -0000
+
+--001a114661985ce5bc051dae0b0e
+Content-Type: text/plain; charset=UTF-8
+
+On Wed, Aug 19, 2015 at 6:25 PM, Btc Drak <btcdrak@gmail.com> wrote:
+
+> In our case for Bitcoin Core, option 2 we use nVersion=8, apply a
+> bitmask of 0xdffffff8 thus:
+>
+> if ((block.nVersion & ~0x20000007) >= 4 &&
+> CBlockIndex::IsSuperMajority(...)) { //...}
+>
+> With nVersion=8, but using comparison >=4 allows us to recover the
+> bit later, assuming we want it (otherwise we use version >=8).
+>
+
+That is the 75% "activation" rule portion? The 95% rule has to apply to
+all blocks.
+
+The supermajority applies to unmasked blocks?
+
+I think you want it so that a sequence of blocks with version 8 can be
+followed by version 4 blocks?
+
+If 950 of the last 1000 blocks have bit 0x08 set, then reject any block
+with a version less than 4.
+
+This means transitioning to the version bits BIP just requires dropping the
+version back to 4 and adding a rule enforcing the BIPs for version 4 and
+higher blocks.
+
+This would be part of the version bits BIP enforcement.
+
+--001a114661985ce5bc051dae0b0e
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: quoted-printable
+
+<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W=
+ed, Aug 19, 2015 at 6:25 PM, Btc Drak <span dir=3D"ltr">&lt;<a href=3D"mail=
+to:btcdrak@gmail.com" target=3D"_blank">btcdrak@gmail.com</a>&gt;</span> wr=
+ote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
+-left:1px #ccc solid;padding-left:1ex">
+In our case for Bitcoin Core, option 2 we use nVersion=3D8, apply a<br>
+bitmask of 0xdffffff8 thus:<br>
+<br>
+=C2=A0 =C2=A0 if ((block.nVersion &amp; ~0x20000007) &gt;=3D 4 &amp;&amp;<b=
+r>
+CBlockIndex::IsSuperMajority(...)) { //...}<br>
+<br>
+With nVersion=3D8, but using comparison &gt;=3D4 allows us to recover the<b=
+r>
+bit later, assuming we want it (otherwise we use version &gt;=3D8).<br></bl=
+ockquote><div><br></div><div>That is the 75% &quot;activation&quot; rule po=
+rtion?=C2=A0 The 95% rule has to apply to all blocks.<br></div><div><br></d=
+iv><div>The supermajority applies to unmasked blocks?<br><br></div><div>I t=
+hink you want it so that a sequence of blocks with version 8 can be followe=
+d by version 4 blocks?<br><br></div><div>If 950 of the last 1000 blocks hav=
+e bit 0x08 set, then reject any block with a version less than 4.<br><br></=
+div><div>This means transitioning to the version bits BIP just requires dro=
+pping the version back to 4 and adding a rule enforcing the BIPs for versio=
+n 4 and higher blocks.<br><br></div><div>This would be part of the version =
+bits BIP enforcement.<br></div></div></div></div>
+
+--001a114661985ce5bc051dae0b0e--
+