summaryrefslogtreecommitdiff
path: root/9f/51fc0372f404045b20a86e23ec1ddc0d77e565
blob: 395d0580d8eab4fbbc7b0173d9635c94aa471589 (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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
Delivery-date: Tue, 12 Mar 2024 22:10:46 -0700
Received: from mail-oa1-f57.google.com ([209.85.160.57])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBDRYHVHZTUGRBT7KYSXQMGQEPYYMWVY@googlegroups.com>)
	id 1rkGt4-0002GF-3H
	for bitcoindev@gnusha.org; Tue, 12 Mar 2024 22:10:46 -0700
Received: by mail-oa1-f57.google.com with SMTP id 586e51a60fabf-221df1f20bfsf3434849fac.2
        for <bitcoindev@gnusha.org>; Tue, 12 Mar 2024 22:10:45 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1710306640; cv=pass;
        d=google.com; s=arc-20160816;
        b=fBf+uWijdoc2W8Z0wMwVoGnncBVy6C19ydhI64i9qIPzicGyRKpmolNjHZ2wU1O3tV
         TYifqC/yeiEvqOlCAkR8m5oO+06Xi2pefXNdU/0PFd+4yxpaV1gqlgAwW+/Ojq6ZhzK1
         otJXZdialGifnZFFVo2SEgzMegY9sTPzmvr+0zSCQgf0ehZ7b8j2gBMcqBBGhUkXhbbu
         AbwLmGjIbUfKQgxsuWqwFR17VF5QXl2c/Gll1zoo8k2NbKjc6jX14k7IL0G35hGs/Kd6
         PNxGGEV9RrScH5WI5yT9DaTCLJfx5h3BALXtJxcy1Ki0e1WRc5uX+y6GVEtqhrT/4DME
         QUBw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:content-disposition:mime-version
         :message-id:subject:to:from:date:feedback-id:sender:dkim-signature;
        bh=8iGMdleQLjM41Q2VNvp1iFPYkTOGtma+QDpo2mxjFcA=;
        fh=YbT61aMp60aW3v8gFKE/EsYu5qeHTYpxHyu0D2f6R28=;
        b=dMYjXPwyt2Mz5uMuxRXp/nSnC1/3p7tGZSGi3HDUy5KQckO466RSMk8kfioVzv6GBC
         dWF5eANUpOaP3g6pThtHgPZ3NQvL13X0tcPGfJ4mRxYzndWjYPzRQAvutoK6G551ST/7
         jxk4BHqLH9qy71Sr5CEQRX2Q5GWmJK6/sN+Dk0Lq4dUjo34fxitPdQ+qbiY1f4qMst+t
         smB9PQXRYpEaLeFG56UMLbN2mwcE/XGwpWorHhme6LmHoVoKpHybq18IdiU6OwXMbYEL
         MevfmmCvYJdOwKfK0byZzCKB5QeWi3vae9tnKckW3nAU98ULkOaSTQBtRlaGW45kDeKW
         BECA==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RYew02pi;
       spf=pass (google.com: domain of pete@petertodd.org designates 103.168.172.157 as permitted sender) smtp.mailfrom=pete@petertodd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1710306640; x=1710911440; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:content-disposition:mime-version:message-id
         :subject:to:from:date:feedback-id:sender:from:to:cc:subject:date
         :message-id:reply-to;
        bh=8iGMdleQLjM41Q2VNvp1iFPYkTOGtma+QDpo2mxjFcA=;
        b=but0ZSpA1/+Y3YYN8jT64oVmB3zxj5K5+G8xqFBuQqv0l5PgK3kO9EWq/3Lhw5oLXr
         tqlkciExFJr8K0f1pCRaRBPwt+CGmRJRttL7CzARc4dB2N4Oa4Xeoz6G/oKSXzoTxRuO
         S46D1RwXxJxSdrWFRDQEt/rpJMxNafaROWTg7yOXyoE5r09qplmp7IA09XrFVJFdg1vk
         DSPxKi3Eq23a2D3MCRZDRRTIPVuvWDaTDW51L3oZ+DkZjjIzF75I9Xmdmn/M0dHFmnNU
         qs60hWFVySrXSVtWLyvwxk3F5hEdfL/jgYw2lGcXb0Fl19X8orjSae6ueAfPaQEGhvV/
         M2Og==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1710306640; x=1710911440;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-authentication-results
         :x-original-sender:content-disposition:mime-version:message-id
         :subject:to:from:date:feedback-id:x-beenthere:x-gm-message-state
         :sender:from:to:cc:subject:date:message-id:reply-to;
        bh=8iGMdleQLjM41Q2VNvp1iFPYkTOGtma+QDpo2mxjFcA=;
        b=WchfAgy3/lVhSALPMWIoN8C5zSnNEvQKbfUBe4TWpUS7zAT519sivoRlIur3nkgElD
         rBPpxHyiFXUkNaqbrHz0W3u3A/DiBVHeOJIj6/+Eo6tIMDKsa42pIRkjdLJC/qtjKqOZ
         meCpAz3zx+y8f69TFV3Q3MwY69sDjH1N0BiX9e6Id+UB1qVRf5jkgmTcK/mersA8UXQ7
         6HBHVyi9lfDTO9a+G4ATa6t2Ir8HBe8sOLf1LhfDlxoynhsvtvgVw4SpRj1YTDvvniDE
         swrImi8TfBbA0meuCjkTNnNxaCE0Ozr6Q4Ysw7tor30M99Y16c2rikE2rv2263UEvJ3V
         +zEQ==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCXKYKK6iM6rX29GIB0Ei4SEIvLyfzmmM/Q5+0UFTCsAMucoHHNaPFl2OsrUJ3xbdFYPTwKDE09vLtRuxGEKBd8eUtaNmP0=
X-Gm-Message-State: AOJu0YzvgeQVTCz8+KtXsUGx+GxYu8KhkX6XyYAXrrV3mgV+1HB3dzGM
	j7uwgrRhdAj6o6u7ebhi85J/lhK/QtGuYW1lBcgvkjFkneDso/29
X-Google-Smtp-Source: AGHT+IG3D+ZOzQyhMENhtLJHB9HAOpj/iPEOCXQMwbPMVLXAKY0H7unTXYL45cfP4a0th3VIIfPhOA==
X-Received: by 2002:a05:6870:a68f:b0:221:96f6:bb67 with SMTP id i15-20020a056870a68f00b0022196f6bb67mr11880076oam.31.1710306640045;
        Tue, 12 Mar 2024 22:10:40 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a05:6870:8a0c:b0:221:b74e:57c8 with SMTP id
 p12-20020a0568708a0c00b00221b74e57c8ls4679330oaq.0.-pod-prod-04-us; Tue, 12
 Mar 2024 22:10:39 -0700 (PDT)
X-Received: by 2002:a05:6870:c0d2:b0:21e:57af:f72c with SMTP id e18-20020a056870c0d200b0021e57aff72cmr35229oad.5.1710306639141;
        Tue, 12 Mar 2024 22:10:39 -0700 (PDT)
Received: by 2002:a05:6808:2182:b0:3c1:e832:1745 with SMTP id 5614622812f47-3c25ed95b81msb6e;
        Tue, 12 Mar 2024 20:32:10 -0700 (PDT)
X-Received: by 2002:a05:6808:1249:b0:3c2:36ff:aff5 with SMTP id o9-20020a056808124900b003c236ffaff5mr13394744oiv.32.1710300729612;
        Tue, 12 Mar 2024 20:32:09 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1710300729; cv=none;
        d=google.com; s=arc-20160816;
        b=kR60TSQDtJ06E2QDYj0Pm5NVughFwiV7QFEoyovQhia+2D0SObXuyrle7PBDDUjcH1
         o0fUEbZeCrbi+S0e5OTQYSQ/doIKqSEMez3mpip/qdxdiPzlaJpKu/f1gNLLAiksRQAg
         NSd+Yq1e34sYo/RQsyJqTwOQaJfGwT3VaStlZk1heoO9Q+zUg/9DgRgeIUKGTxLdhaqu
         UGcw3fFdzmetOIfq8YH6vK6rXmA0Dc2+ex1/Q5p6AwFqX26oGozvsV/GiRKxmROJ4kTo
         eQ0Pogeyiemue78um7qHzBFXLCTv2Ga8f+u6O9dN5uSFB+6kN7FJqdZzG6D9JuGQMWzz
         iMYw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-disposition:mime-version:message-id:subject:to:from:date
         :feedback-id:dkim-signature;
        bh=aPA1918NEm3ikY6MwlxowU58XUldyNiSBcxzr2CLK9E=;
        fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=;
        b=xpy9CAOJmgiUqLZSZVNHuoPuS+nDlQEqACoXQRg4eM4cHPbzdocz9m5WHMrulr+pUj
         9foRtWxYjvGBbtkxc6N+z4naQGMlW6HTvtq4ar3tWrXUxfbbgbMzCq3ZGC4e7/S7DU0k
         TZ6izBcPstZ56BoKPvVcQh2aM+qTZ4eYFhCdlO/xDjV5D/w2d1SWbEXa8YG0AkeXfgMT
         OB6HZGisHIji4QzIyZs0j2L58pL8l5vWke/sJPByU2Xz7GrAPjcOcvCwyZI5LMVoijpO
         /QmxP6+9t5gd8sLoH7Im70YITBtfA1Jyi/LCzo/b+9ZFhbhjsX971bN02gthsj/RSmvN
         1GvA==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RYew02pi;
       spf=pass (google.com: domain of pete@petertodd.org designates 103.168.172.157 as permitted sender) smtp.mailfrom=pete@petertodd.org
Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com. [103.168.172.157])
        by gmr-mx.google.com with ESMTPS id s9-20020a05680810c900b003c23098ced8si1758193ois.5.2024.03.12.20.32.09
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 12 Mar 2024 20:32:09 -0700 (PDT)
Received-SPF: pass (google.com: domain of pete@petertodd.org designates 103.168.172.157 as permitted sender) client-ip=103.168.172.157;
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
	by mailfhigh.nyi.internal (Postfix) with ESMTP id E999E11400EB
	for <bitcoindev@googlegroups.com>; Tue, 12 Mar 2024 23:32:08 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
  by compute7.internal (MEProxy); Tue, 12 Mar 2024 23:32:08 -0400
X-ME-Sender: <xms:OB7xZXJkZlaNT0f9zzqncPJ-VEQTDuEsZBA95qNO2Q4fzUrXtZB9gQ>
    <xme:OB7xZbJM5YSSHBj8M2IdL8s-FNPRrOK3StbajvvBM8KZDDnDZdRlfiRKNuGViRABK
    OquzohrC-nqq_RiqKg>
X-ME-Received: <xmr:OB7xZfvrAaB0zGumYAJ4YS40OCD6qLS2vXjufr8WGPYnlWzSO1M9-ol7Jw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeeggdeiudcutefuodetggdotefrodftvf
    curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
    uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehgtderredttd
    ejnecuhfhrohhmpefrvghtvghrucfvohguugcuoehpvghtvgesphgvthgvrhhtohguugdr
    ohhrgheqnecuggftrfgrthhtvghrnhepieefleetgeeikeekvedvffdvvdejteeiieejgf
    dvvedvuefhgeejveeftdevjeetnecuffhomhgrihhnpeguvghlvhhinhhgsghithgtohhi
    nhdrohhrghdpphgvthgvrhhtohguugdrohhrghenucevlhhushhtvghrufhiiigvpedtne
    curfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvgesphgvthgvrhhtohguugdrohhrgh
X-ME-Proxy: <xmx:OB7xZQZoHFU8yl7AfblIszSR29CF1vytMKZLZ0mogaenWCCtRu7e4g>
    <xmx:OB7xZeZyWRg9kRgir5_GP_vSfb-seJSSXNR-cxA4N20a6zyJZPy66A>
    <xmx:OB7xZUAsP5y4E5z6-2BeNkw-rbaS7Et5-vifu4BH-rymOk2pWDXZ0A>
    <xmx:OB7xZcboRAYF9DcP2_Kh1YKSgPes57dGj0GE4TGUxNLBGDL4iVYcCQ>
    <xmx:OB7xZVw63GnhLfyo8xSJcYm7d0rxlUtwOfhAPJxyGSSVd8MhaAJTag>
Feedback-ID: i525146e8:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bitcoindev@googlegroups.com>; Tue, 12 Mar 2024 23:32:08 -0400 (EDT)
Received: by localhost (Postfix, from userid 1000)
	id 187805F856; Wed, 13 Mar 2024 03:32:05 +0000 (UTC)
Date: Wed, 13 Mar 2024 03:32:05 +0000
From: Peter Todd <pete@petertodd.org>
To: bitcoindev@googlegroups.com
Subject: [bitcoindev] OP_Expire mempool behavior
Message-ID: <ZfEeNcX3ebyuYYRi@petertodd.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="mDr+lEMoqAV+gaM5"
Content-Disposition: inline
X-Original-Sender: pete@petertodd.org
X-Original-Authentication-Results: gmr-mx.google.com;       dkim=pass
 header.i=@messagingengine.com header.s=fm1 header.b=RYew02pi;       spf=pass
 (google.com: domain of pete@petertodd.org designates 103.168.172.157 as
 permitted sender) smtp.mailfrom=pete@petertodd.org
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -0.8 (/)


--mDr+lEMoqAV+gaM5
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I got a question re: the following comment on delvingbitcoin with regard to
OP_Expire:

> > nodes should require higher minimum relay fees for transactions close t=
o
> > their expiration height to ensure we don=E2=80=99t waste bandwidth on t=
ransactions
> > that have no potential to be mined
>
> This seems insufficient to solve the problem, unless the premium is so hi=
gh
> that it virtually guarantees that the transaction will be mined before it
> expires. However, if the feerate were that high, wouldn=E2=80=99t OP_EXPI=
RE simply
> waste blockspace? If however the feerate of the transaction is merely
> competitive, the presence of OP_EXPIRE creates a bandwidth-wasting vector=
: an
> attacker would submit e.g. OP_EXPIRE transactions at the bottom of the to=
p
> block and push them out of the top block with further OP_EXPIRE transacti=
ons.
> This way the attacker could issue a constant stream of transactions, but
> never pay for more than a couple barely sliding in at the bottom of the
> block.
-https://delvingbitcoin.org/t/op-checkmaxtimeverify/581/8

This "bandwidth-wasting vector" requires the attacker to create actual
fee-paying transactions, with a fee-rate sufficiently high to get mined in =
the
next block or so. This of course is very expensive by itself.

If you already have a need to make such transactions, you can argue that th=
e
marginal cost to also use up that bandwidth is low. But that's already the =
case
with RBF: we allow any transaction to be replaced with RBF for a (by defaul=
t)
1sat/vB additional cost to "pay for" the bandwidth of that replacement.
OP_EXPIRE does not change this situation: you're still paying for an additi=
onal
1sat/vB cost over the replaced transaction, as eventually one of your
replacements will get mined.

--=20
https://petertodd.org 'peter'[:-1]@petertodd.org

--=20
You received this message because you are subscribed to the Google Groups "=
Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/=
bitcoindev/ZfEeNcX3ebyuYYRi%40petertodd.org.

--mDr+lEMoqAV+gaM5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmXxHjMACgkQLly11TVR
LzcoYA//YtkGk5R5s1SusXTI7cCSbeAj4eslEV73mGXm+1LERpHiZRDbXRdwuvbH
L/xSIK92uVOL8u+nD6s3Ym3RgZ2/t9zEMfKliWh84x2XIQdG8zi0oOmjKLb6XtT8
Ztr77ued8ngCCl0b9fxtbbvWz1iGRUy+aFxUKb+zA+tG2F8IBDJ3etNkxl33+Hf+
wNkt6hN+vFURX2xOA+wmly0VrxVXjZ9fLMMpTEKs3G28wDjPSosWiySWit7RX1R2
fgyFxDGrkAl05CnIO4qJcKPdh2rpGSi+UUlXJouocJtnOgt9fgI/FEpnrEbiAfjy
oIVp9U8MB2UpwaH/8ENc172BiY/o1bda0THxQJ7Yb+1wbhrWdjbRjrhzO1J7Wp6x
JRyJhCCCxd1Nn8wjFM0/rn/twM3HiRuJFtJtJJ4uGzZ54eDAEQL/RNamY0hnIf8X
xiRdITdQh4CMMxeoB4LGEIOsqC5KQEYRYpt0CxTNPGnUdQXs/AsRMux2kFYKP+VH
RtNMEpOw7kLL6XfDwFeK6Pe6FKHftRJS2XiyCiqd1tuShDQdSwkuzOAxBP+W/BSC
1nD24FRYgjMG8Fr6SmPepjiM8j/1jR9ILi+ChWtEnFqFNWEGbGQ3lsFfE2q3cyPO
R6MXI059SF+7xbHdS1/bdBU2lzkwsM5JP+BNHWZza7Vah08Fook=
=V2AP
-----END PGP SIGNATURE-----

--mDr+lEMoqAV+gaM5--