summaryrefslogtreecommitdiff
path: root/a9/7fb0c269f1ed5edef3223d875cfeaa2060459a
blob: eb24b8b7e91ba57074374d47c3396ce7e946ae8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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 <jgarzik@exmulti.com>) 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 <bitcoin-development@lists.sourceforge.net>;
	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: <CA+8xBpefOgtuECJqoAtbFfPnmkFEHTL=6Uqf=kb7NB=fnV863Q@mail.gmail.com>
From: Jeff Garzik <jgarzik@exmulti.com>
To: Bitcoin Development <bitcoin-development@lists.sourceforge.net>
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: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=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 <gavinandresen@gmail.com>
  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