Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1SnABR-00077X-EH for bitcoin-development@lists.sourceforge.net; Fri, 06 Jul 2012 15:11:01 +0000 X-ACL-Warn: Received: from mail-lb0-f175.google.com ([209.85.217.175]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1SnABL-0005vi-O7 for bitcoin-development@lists.sourceforge.net; Fri, 06 Jul 2012 15:11:01 +0000 Received: by lbol5 with SMTP id l5so14413070lbo.34 for ; Fri, 06 Jul 2012 08:10:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=48QXDCJmTlZxb2vrRhK45k2facWzNz5Cf2lN/yefQB0=; b=OdWvjKAcFnHTpcedU3v5Z98gxTbRJDdQ4Ar3d0YL59Q9ALIg0wssZxlNxDyvDoRpYg dKRoOWmZSG7srFPNvj21jUnPyeOPjpeWfZEv2PNencfaKl78C31/cPQQV3n51MRg+P99 6LHiWDcZ7O+tUxxEiWYdF6iF/gBDxYXL2TtlbaINJT308BmIpWBIGwf5nxzDrWC2lELb /JCcVSBywHyDPivEPlEUP/NUR8h7ma7/UDavwfpNa6cscFHyFbp+XZiBJBaRgjHKObya QTHF9tgFVQ8iT2mBrZsjQRtcMTT6DDG2YhFhPKU/ZP0IztrNDuTWj/pXP0Q7MFE8oPXr 2nKQ== MIME-Version: 1.0 Received: by 10.152.132.40 with SMTP id or8mr30621824lab.24.1341587449054; Fri, 06 Jul 2012 08:10:49 -0700 (PDT) Received: by 10.114.63.165 with HTTP; Fri, 6 Jul 2012 08:10:48 -0700 (PDT) X-Originating-IP: [2001:4830:1603:2:21c:c0ff:fe79:c8c2] Date: Fri, 6 Jul 2012 11:10:48 -0400 Message-ID: From: Jeff Garzik To: Bitcoin Development Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQn6iNOnOd/vzvCpW837jQaZbllDE+4ED+0IBcpfSlbtPbg0J+zkwUiMNoiMc1lYF32KQP6p X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. X-Headers-End: 1SnABL-0005vi-O7 Subject: [Bitcoin-development] BIP 34: Block v2, Height in Coinbase X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jul 2012 15:11:01 -0000 Please review and comment... Block v2, Height in Coinbase https://en.bitcoin.it/wiki/BIP_0034 BIP: 34 Title: Block v2, Height in Coinbase Author: Gavin Andresen Status: Draft Type: Standards Track Created: 2012-07-06 Abstract Bitcoin blocks and transactions are versioned binary structures. Both currently use version 1. This BIP introduces an upgrade path for versioned transactions and blocks. A unique nonce is added to newly produced coinbase transactions, and blocks are updated to version 2. Motivation 1. Clarify and exercise the mechanism whereby the bitcoin network collectively consents to upgrade transaction or block binary structures, rules and behaviors. 2. Enforce block and transaction uniqueness, and assist unconnected block validation. Specification 1. Treat transactions with a version greater than 1 as non-standard (official Satoshi client will not mine or relay them). 2. Add height as the first item in the coinbase transaction's scriptSig, and increase block version to 2. The format of the height is "serialized CScript" -- first byte is number of bytes in the number (will be 0x03 on main net for the next 300 or so years), following bytes are little-endian representation of the number. 3. 75% rule: If 750 of the last 1,000 blocks are version 2 or greater, reject invalid version 2 blocks. (testnet3: 51 of last 100) 4. 95% rule ("Point of no return"): If 950 of the last 1,000 blocks are version 2 or greater, reject all version 1 blocks. (testnet3: 75 of last 100) Backward compatibility All older clients are compatible with this change. Users and merchants should not be impacted. Miners are strongly recommended to upgrade to version 2 blocks. Once 95% of the miners have upgraded to version 2, the remainder will be orphaned if they fail to upgrade. Implementation https://github.com/bitcoin/bitcoin/pull/1525 and https://github.com/bitcoin/bitcoin/pull/1526 -- Jeff Garzik exMULTI, Inc. jgarzik@exmulti.com