summaryrefslogtreecommitdiff
path: root/1d/d1666d1b5dd523d306aa3f844719e40f0f9d38
blob: f8f84c86e577f1f30cc11a181af8aed68ea2948c (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
Return-Path: <gsanders87@gmail.com>
Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])
 by lists.linuxfoundation.org (Postfix) with ESMTP id A9AC7C0176
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 23 May 2020 15:24:42 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by whitealder.osuosl.org (Postfix) with ESMTP id 9E92287AD5
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 23 May 2020 15:24:42 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from whitealder.osuosl.org ([127.0.0.1])
 by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id JU-lC3bXIABx
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 23 May 2020 15:24:42 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6
Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com
 [209.85.221.46])
 by whitealder.osuosl.org (Postfix) with ESMTPS id C7FE987928
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 23 May 2020 15:24:41 +0000 (UTC)
Received: by mail-wr1-f46.google.com with SMTP id e1so13166876wrt.5
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Sat, 23 May 2020 08:24:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=sYzt6mij8IhbNzZ78yNCzQ/dhFC2nlgTbABxWN/W7PM=;
 b=SMV3jivXt7jRqUHFgThkN/r25aPCYayW0t+ecCuXraFGqqX2EhSq+uIBClCK4s8hNa
 Ei1giNUBwTuuIU2V6wetHAyTMQc6Xs8VLkWiilWDRh3XimzunAJJcacsZ6q1ytn/KGmp
 67TLoaa2m8HHVgGEEasBfPrFiTRX0+k31GtLOpmj03guawiHm3X6j8YQpZ0SJ8eJRxQ8
 R4uAiBRI21JFYqXR9L0p/aW3nADwdOJkBUV+q8yC1SvE1HiJsqv1o6EceTtgQXkE/5Qq
 aGyO/LoyPjOaKoqE2G+8/nypVGJr6Tn3GNwT9MQO+daT3ubWySp/ej00Quu/fXogSmUZ
 uiyg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=sYzt6mij8IhbNzZ78yNCzQ/dhFC2nlgTbABxWN/W7PM=;
 b=op9dbIBVYN8eXDE8eg2EUPmboUMDXJU98KfoZ3kGyX4i8YhfcXyGRr3U/M40R4eUCN
 9/3/yCmkAGQ/UQZCMTRPTE/iDinMeJ+leaM0lGXm5Buk3QaUvMKPB9bzGnhM9oxHtPe/
 QCfbnkMfDGPE8zUL5J0Tx8U77e6jLWeIlRpcsWgVEFqAKcPPkyikTXo0vdBOlsWxR3FS
 MntMOQ7ciD8277Ph+Vqy9Kvgxp3DAMIJnro6tYQwfNpWItzHQb9aVwzKcDf6TqdUoB37
 gnkRYPyTbtXcsvtZvTPbIhRqrnExaIBqxi0m/ByAbJ/NgZYEpsVwraS1U9z2p0Gm47wI
 wM4A==
X-Gm-Message-State: AOAM532NLpZxPy4mE415OmvhKIiHWQ4er4W0fAqV35RvsOXfzWUDyWfz
 vNmRp3zwnwve2bHQYKuyRM1vUUek7TVGnj3+IR6GaVR69cM=
X-Google-Smtp-Source: ABdhPJwalXeBY7VHddlfzA8EKxl28rLrKLQCzs1kQc3Nkze0wu9AM8ryHnG4jRba8eqm2GvR+mcEDVlhGfFyCW+pdDM=
X-Received: by 2002:a5d:604b:: with SMTP id j11mr7739083wrt.193.1590247480243; 
 Sat, 23 May 2020 08:24:40 -0700 (PDT)
MIME-Version: 1.0
References: <aa916637-befa-795a-caa1-e5ad50ce63c8@electrum.org>
In-Reply-To: <aa916637-befa-795a-caa1-e5ad50ce63c8@electrum.org>
From: Greg Sanders <gsanders87@gmail.com>
Date: Sat, 23 May 2020 11:24:28 -0400
Message-ID: <CAB3F3DuGi_Uc0cf5eGvE9ej2d1RS8CVkf7xGBjR4uRf8jAmQhA@mail.gmail.com>
To: Thomas Voegtlin <thomasv@electrum.org>, 
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="0000000000002a3a4505a65258c0"
Subject: Re: [bitcoin-dev] MIN_STANDARD_TX_NONWITNESS_SIZE and OP_RETURN
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
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: Sat, 23 May 2020 15:24:42 -0000

--0000000000002a3a4505a65258c0
Content-Type: text/plain; charset="UTF-8"

AFAIU the number was picked to protect against CVE-2017-12842 covertly.
See: https://github.com/bitcoin/bitcoin/pull/16885
<https://github.com/bitcoin/bitcoin/pull/16885/files> which updated the
text to explicitly mention this fact.

On Sat, May 23, 2020 at 11:20 AM Thomas Voegtlin via bitcoin-dev <
bitcoin-dev@lists.linuxfoundation.org> wrote:

> Hello list,
>
> I have been trying to CPFP a transaction using OP_RETURN, because the
> remaining output value would have been lower than the dust threshold.
>
> The scriptPubkey of the output was OP_RETURN + OP_0, and there was a
> single p2wsh input.
>
> The result is a 60 bytes transaction (without witness), that gets
> rejected because it is lower than MIN_STANDARD_TX_NONWITNESS_SIZE, which
> is equal to 82 bytes.
>
> Why is that value so high? Would it make sense to lower it to 60?
>
>
> Thomas
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
>

--0000000000002a3a4505a65258c0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">AFAIU the number was picked to protect against=C2=A0CVE-20=
17-12842 covertly. See:=C2=A0<a href=3D"https://github.com/bitcoin/bitcoin/=
pull/16885/files">https://github.com/bitcoin/bitcoin/pull/16885</a>=C2=A0wh=
ich updated the text to explicitly mention this fact.</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, May 23, 2020=
 at 11:20 AM Thomas Voegtlin via bitcoin-dev &lt;<a href=3D"mailto:bitcoin-=
dev@lists.linuxfoundation.org">bitcoin-dev@lists.linuxfoundation.org</a>&gt=
; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello l=
ist,<br>
<br>
I have been trying to CPFP a transaction using OP_RETURN, because the<br>
remaining output value would have been lower than the dust threshold.<br>
<br>
The scriptPubkey of the output was OP_RETURN + OP_0, and there was a<br>
single p2wsh input.<br>
<br>
The result is a 60 bytes transaction (without witness), that gets<br>
rejected because it is lower than MIN_STANDARD_TX_NONWITNESS_SIZE, which<br=
>
is equal to 82 bytes.<br>
<br>
Why is that value so high? Would it make sense to lower it to 60?<br>
<br>
<br>
Thomas<br>
_______________________________________________<br>
bitcoin-dev mailing list<br>
<a href=3D"mailto:bitcoin-dev@lists.linuxfoundation.org" target=3D"_blank">=
bitcoin-dev@lists.linuxfoundation.org</a><br>
<a href=3D"https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev" =
rel=3D"noreferrer" target=3D"_blank">https://lists.linuxfoundation.org/mail=
man/listinfo/bitcoin-dev</a><br>
</blockquote></div>

--0000000000002a3a4505a65258c0--