summaryrefslogtreecommitdiff
path: root/74/636633cad022b278d7cca866fd611d4a629240
blob: 990ae1e07f573938c90a5ce13484b7efc23172d4 (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
Return-Path: <jl2012@xbt.hk>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 1543D978
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 26 Jan 2017 12:57:56 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
Received: from sender163-mail.zoho.com (sender163-mail.zoho.com
	[74.201.84.163])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 7D819135
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Thu, 26 Jan 2017 12:57:55 +0000 (UTC)
Received: from [10.8.8.2] (119246245241.ctinets.com [119.246.245.241]) by
	mx.zohomail.com with SMTPS id 1485435458265499.1695979901465;
	Thu, 26 Jan 2017 04:57:38 -0800 (PST)
From: Johnson Lau <jl2012@xbt.hk>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Thu, 26 Jan 2017 20:57:32 +0800
References: <3264264.qpyyi8nbyQ@strawberry>
To: Tom Zander <tomz@freedommail.ch>,
	bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org>
In-Reply-To: <3264264.qpyyi8nbyQ@strawberry>
Message-Id: <A4EF0301-870D-415C-9E80-36DBBA7F3E65@xbt.hk>
X-Mailer: Apple Mail (2.3259)
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
Subject: Re: [bitcoin-dev] Changing the transaction version number to be
 varint
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Protocol 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: Thu, 26 Jan 2017 12:57:56 -0000


> On 20 Jan 2017, at 22:02, Tom Zander via bitcoin-dev =
<bitcoin-dev@lists.linuxfoundation.org> wrote:
>=20
> The way to do this is that from a certain block-height the current=20
> transaction format labels bytes 2, 3 & 4 to be unused.
> =46rom that same block height the interpretation of the first byte is =
as=20
> varint.
> Last, we add the rule from that block-height that only transactions =
that do=20
> not lie about their version number are valid. Which means version 1.
>=20
> Do people see any problems with this?
> This could be done as a soft fork.

Yes, because:

a) what you are talking is a hardfork, because existing nodes will not =
be able to deserialise the transaction. They will forever interpret the =
first 4 bytes as nVersion.

b) it is not a =E2=80=9Clie=E2=80=9D to use non-version 1 txs. It is =
permitted since v0.1. And version 2 txs is already used due to BIP68.

c) if you are talking about changing the tx serialisation just for =
network transfer, it=E2=80=99s just a p2p protocol upgrade, not softfork =
nor hardfork

-------------------------

There are 3 ways to introduce new tx formats:

1. through a softfork, and make the old clients blind to the new format. =
That=E2=80=99s the segwit approach

2. through a hardfork. Forget the old clients and require new clients to =
understand the new format. That=E2=80=99s the FlexTran approach (in my =
understanding)

3. p2p only, which won=E2=80=99t affect consensus. No one could stop you =
if you try to copy a block by writing in your native language and pass =
to your peer.

In either way, one could introduce whatever new format one wants.=