summaryrefslogtreecommitdiff
path: root/53/9dfc4ed2ceb2ac4d828cdd0e91b56daee32c27
blob: 75abecfc87eb37779f5f36d8753f62fe92caab3b (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
243
244
245
246
247
248
Delivery-date: Thu, 20 Jun 2024 09:56:38 -0700
Received: from mail-oo1-f58.google.com ([209.85.161.58])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBDRYHVHZTUGRBPV62GZQMGQEEWMLY2A@googlegroups.com>)
	id 1sKL5R-0007Yy-MS
	for bitcoindev@gnusha.org; Thu, 20 Jun 2024 09:56:38 -0700
Received: by mail-oo1-f58.google.com with SMTP id 006d021491bc7-5bb3494da69sf1059180eaf.1
        for <bitcoindev@gnusha.org>; Thu, 20 Jun 2024 09:56:37 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1718902591; cv=pass;
        d=google.com; s=arc-20160816;
        b=axINDSYJQdonVHhaufsyvh9Da6z3JGZMwWdbcayt655aMyly0tWI3Fo35O9EMrErye
         W4T+K9gxjU4ZPSsHUE8Dy+YK1rTEfThqH2bSUpowdrIedVsvooWYgJDEy6Q/lFRR7FID
         KBYemczZFoKD3pYa/b1XnJucK4nj88L3cwzkpIEmotl92lA42Uyx+6M3YAyamaBnrBwI
         5JJ3CnP+QvCdPJwSZsr/BEfXIBI4xX9SlSmRjsx16dXN9De3/9+pOFe1Svs4/AFTFEqB
         q9j+X+EnULSuVcmBIpVgAWIZEJDFNDR7KKt2jIwTu/Oxz3vpx9bM4E5bgDh70kF73fil
         hK+A==
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=ne9pUEV9dxXmsMa9ODUZ//xbLDuCxMZ5rYSvnAh0fck=;
        fh=LIvObaHlNeK2j1K7RBBfmfvsMmsaf0UjjLxnjfXjZf8=;
        b=jbN/Rg7vlroCGZ4s9oDRCvE+Rh9lx7iCLRyczMt0z53mTFCs4nc9UdaEPUbzM8rzex
         iuNdJrpBexaXGhdHksURaWvkzl0lNVqOFGyzvDYfG42yf+EmJ4sYTzyZEnAYcrmDJO0r
         KDVO+0N0fbXkOhM+hvKGRQDVT10hfZvKb4JoKakM3irnShlM6la4i3c7kE2I3GlVou+y
         KhIWc84PAi5EvQgYnt/bj2Y9cm9E/lzdrrhKmbCc3lJR+Cb1rSEx+vNB3Ojkd2z+489z
         dUO3umh6Uq2ulekPxCzKkh3R5ccvDXmZLQsZM8YhWHA54l4h33iNHMUfja/l7KHGIVA7
         V3kA==;
        darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
       dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EXykLhTm;
       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=1718902591; x=1719507391; 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=ne9pUEV9dxXmsMa9ODUZ//xbLDuCxMZ5rYSvnAh0fck=;
        b=JUA4K/5wNbsWkMoiD3mMJrA61wRlKi0a9VPrrnE7SO6BTXRYIDDBkObZyhPrc3tM+V
         QBdeMuWqm+Gfv+BoKM0I9u6DxUt6iJNUTX0FdVw5hXZ0ysqocMaLysFE/PDbchmCx/Ct
         cSESVIAoYKnFRbeJlnxlTOZz1mxES31r5MAJgXRYpaSB2JLa0PqRypQwjEJAB8/2zPWY
         HHGj0hlN3z4Jgsiqwak3yVtjoMuGQiWM0Jf54XIMJ1fofsyGO/HWolcmmar5hY7tWDsH
         I9eNwRPP4NZhoESXmgTVpIST048Q1I++d6enQ28q45mHRdQ/xhRnSID+VGX6Odftf9lU
         olKw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1718902591; x=1719507391;
        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=ne9pUEV9dxXmsMa9ODUZ//xbLDuCxMZ5rYSvnAh0fck=;
        b=ERp6mAX/ltjGbp6hW99euChEfd2pv1CVac0U1SySWPAIM8neM+ARSckLzd3ZHlM/EZ
         khIA0O2MP+/XVObaFfDXw9pQLKJiFe06BiM/Y6bxFk0lOQ8zDJ6PFPyBtgBomxFtN7Ra
         D7KxHeTdhpn+Y60kMIxQ9dZNAZ0zsujf5mV8IJLnEkR3zdS5kxZn7h844ZmvOhDPQpU2
         jOUfbA/5sCcvoNhUvbbiB1X6IztLOsRulNP2CPhVZW2w675QjCjsZqpCvLatz209/j7H
         JTmzdKD8A8JSz5l7o2qiqPN2PLnNhXhcOvUlqhCtkAMKyZk+gcaUV2mZpGK4HDtr+39q
         PwcA==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=2; AJvYcCVBeicr2n6BvnEMDB6+6tEsQBQrmZ4fz/tuU1jhmDA3nUbXmebqbBjBkhIhj+xotLgUdUZGoHs0TydSua9Uq//ff7RBpOg=
X-Gm-Message-State: AOJu0YxByzHEf8qYx7bm0QeLB+OpSkajSitK23qc3WGQOwkqAAkQMsdb
	KkYSzcHN3TyJBGhwJ/k4L8W09z537uyKeyE4yTUAPPSUNOGHVVgx
X-Google-Smtp-Source: AGHT+IH//F4HimSGV+ALPfWWUE7DzfIvBqXDVZeCpyPpg2hqCrDmUyHjPgpIDmfrdRa939k+IQpIGA==
X-Received: by 2002:a4a:3503:0:b0:5b9:e7db:1cf8 with SMTP id 006d021491bc7-5c1adbcb58emr6380494eaf.4.1718902591392;
        Thu, 20 Jun 2024 09:56:31 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a4a:3815:0:b0:5ae:1f6c:8988 with SMTP id 006d021491bc7-5c1bff18468ls303252eaf.1.-pod-prod-00-us;
 Thu, 20 Jun 2024 09:56:29 -0700 (PDT)
X-Received: by 2002:a05:6820:2227:b0:5b9:f880:f315 with SMTP id 006d021491bc7-5c1ad89b38cmr347315eaf.0.1718902589786;
        Thu, 20 Jun 2024 09:56:29 -0700 (PDT)
Received: by 2002:a05:6808:3cd:b0:3d1:c9f2:f6fb with SMTP id 5614622812f47-3d51c0dfeccmsb6e;
        Thu, 20 Jun 2024 09:33:52 -0700 (PDT)
X-Received: by 2002:a05:6830:18f5:b0:6f9:82ca:15b5 with SMTP id 46e09a7af769-7007401bd32mr6160706a34.18.1718901230732;
        Thu, 20 Jun 2024 09:33:50 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1718901230; cv=none;
        d=google.com; s=arc-20160816;
        b=fMmawWb+fi9wGK3cQKh6ZdDkC6jOJ/6Jh68sJEBzgSH8dIn212Jz/s8N/patMF6Dua
         JIiqgG8ZXmwejgwFW+E11q1nPVxgZsxqsUQG6oGI1oyDuuk4+qw9VCv6kgPGuE8bjkMV
         Q7N2o8jf05bPcg9n6HniTpsaMRugSHfux3kL0aex+PdLC4MuMPO6ESJgvKD0eDxId2lf
         20Y8psEQ7aQNoNbu2fPzeati9tgytlXc5JsJsGAwrFZEVnOglikuK0Fo/16oMck/O2Z6
         0qtTwQOvPjDSpz8A2jh5xkH7hiweCEzbsnxUlLujRVEnfd6MUYlD79PvNTHFYNJd/FaR
         QFHQ==
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=byL7M6aVRGpiW/nlCXekCF8QtEa0aqaB5TWjyhPrsCk=;
        fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=;
        b=m/Pv1T2CUFTo5r5hXITGNXLq+oz448MOFrkAjh/YtRaiN22gVJmqsKBDSdi9Nb/4wb
         ljOAqti9KbO049QQ94SSNTTo6aJmVr5gvLVmyk3dJNN03gU0b9QZrlFXcrh5++Bigy9j
         fvtOiuMsW5mUpnLrGkxWzOwH6iBAKz7aK5LH8+gB2ZZB/FoHUZPX7yNEaUitfqEWi5mO
         ia6U1BiL+NYafNx1XzfFhgQzrv451ATPjXswHvHHeM3X9AfNTr45LjljfZ15pvoK8rT7
         uQ6D32TwvPshnWD6jysw+zYBMhuP/pvzS57puA/cvmKtsyI5vMyzanEGzxOhQwDCUWCk
         uDLg==;
        dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EXykLhTm;
       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 46e09a7af769-6fb5b859de4si647410a34.3.2024.06.20.09.33.50
        for <bitcoindev@googlegroups.com>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 20 Jun 2024 09:33:50 -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 F41141140159
	for <bitcoindev@googlegroups.com>; Thu, 20 Jun 2024 12:33:49 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
  by compute7.internal (MEProxy); Thu, 20 Jun 2024 12:33:49 -0400
X-ME-Sender: <xms:7Vl0ZswswoQlM06Y9IRyQ5YDhk1uCpY4Lg4oOGfentVQCMqT8eNhHA>
    <xme:7Vl0ZgR38nZVuSb6aKZKuWLqK0fAQf8A9h7b6ljXpKljC6HzzwLk0BFX_igy4Er9s
    bt-2RiLcLA8qldlFg0>
X-ME-Received: <xmr:7Vl0ZuWcOqPQFpw2lUy3I0xq4yuxm_aTOPt94tyfOGzAuqAhljdyvcBTMAB7DmyZVaSOkiq0_EwAgDTvtw1T9wK9s7jl>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddguddtfecutefuodetggdotefrod
    ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
    necuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomhgrihhnucdlgeelmd
    enucfjughrpeffhffvuffkgggtugesghdtreertddtjeenucfhrhhomheprfgvthgvrhcu
    vfhougguuceophgvthgvsehpvghtvghrthhouggurdhorhhgqeenucggtffrrghtthgvrh
    hnpeduheelffdtieeggefhkeektdetkeffvdektefhvdfgjeetvefhvdefffdvudevleen
    ucffohhmrghinhepghhithhhuhgsrdgtohhmpdhpvghtvghrthhouggurdhorhhgpdigrd
    gtohhmpdhgohhoghhlvgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr
    mhepmhgrihhlfhhrohhmpehpvghtvgesphgvthgvrhhtohguugdrohhrgh
X-ME-Proxy: <xmx:7Vl0Zqj36aa-50Wjsya7C0uV26lXiA-35aurfmz6ea6LeqKjcDPAhA>
    <xmx:7Vl0ZuAmQ4E1eYtz1m5_hmKLSOYoc2nvsg6h0jL1ayyM7Qov8YlD2w>
    <xmx:7Vl0ZrJp6_VlwVTpH2tUJQDND-AUI3MVy-q6d8U882MmCIqruO0Waw>
    <xmx:7Vl0ZlB-53TmCrCPEmhHLCtkr-bRSwDl-NO4IS3RrLDEX9Rb_SYc1A>
    <xmx:7Vl0Zh-HzB8Uw1lEZ3nuYsaqyAAEgfewWH3Tro9-ooT9-D4OeF5tM0IA>
Feedback-ID: i525146e8:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bitcoindev@googlegroups.com>; Thu, 20 Jun 2024 12:33:49 -0400 (EDT)
Received: by localhost (Postfix, from userid 1000)
	id CE3715F83C; Thu, 20 Jun 2024 16:33:47 +0000 (UTC)
Date: Thu, 20 Jun 2024 16:33:47 +0000
From: Peter Todd <pete@petertodd.org>
To: bitcoindev@googlegroups.com
Subject: [bitcoindev] Libre Relay v27.1 released with lower 1.25x replacement threshold
Message-ID: <ZnRZ6zhON4oT5Sg9@petertodd.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="oM63tVpmq+z9KtGU"
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=fm2 header.b=EXykLhTm;       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 (/)


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

https://github.com/petertodd/bitcoin/tree/libre-relay-v27.1

A notable change in this release is I've lowered the replace-by-fee-rate=C2=
=B9
threshold to 1.25x, from the prior 2x. That means if the fee-rate of a
candidate replacement is more than 1.25x higher than the direct conflict, t=
he
replacement can happen. This does two things:

1. Reduces the worst-case cost to defeat transaction pinning.
2. Increases the expected cost of transaction pinning, as 25% is a small en=
ough
   margin that a pin transaction is likely to itself get mined.

Of course, this is a good opportunity for the people who think there are
"massive deficiencies"=C2=B2 in my RBFR proposal to actually prove it with =
an
exploit. Remember that you have to find a DoS attack that is significantly
better than the existing "free" relay attacks=C2=B9=C2=B3=E2=81=B4 that we =
inevitably have
without RBFR.

Libre Relay/RBFR is already mitigating transaction pinning in the real worl=
d.
I've personally run into a few cases with LND nodes where anchor outputs we=
re
spent after the 16 block CSV timeout by third parties in a large transactio=
n
that the LND node was not aware of, leading to LND creating a conflicting,
higher-fee, transaction spending the anchor output and other outputs. Norma=
lly
the conflict would fail to get mined due to the higher absolute fee pin. Bu=
t in
each case after propagation via Libre Relay nodes, F2Pool eventually mined =
the
higher fee-rate transaction after a few hours; I suspect F2Pool has an unus=
ual
short mempool expiration time. Lightning node operators should consider run=
ning
Libre Relay for this purpose, as the existing Lightning protocol does have =
some
pinning vulnerabilities.


1) https://petertodd.org/2024/one-shot-replace-by-fee-rate
2) https://x.com/achow101/status/1767641788192280917
3) https://groups.google.com/g/bitcoindev/c/EJYoeNTPVhg/m/iLVre7MYCAAJ
4) https://groups.google.com/g/bitcoindev/c/3XqfIOYzXqo/m/2bXhHzylBwAJ

--=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/ZnRZ6zhON4oT5Sg9%40petertodd.org.

--oM63tVpmq+z9KtGU
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmZ0WeYACgkQLly11TVR
Lzd1Ww/9F8tq0c7thqwQA8Ii8lyL0WNd5Xl3guOL+Cy15uXpuldI1t5IdaYrapTA
8pD2UY8BqUOpMnJvB6Gd6y04HKXrqDIG5PjW7rZ8GjvkbSTsPlO+AGSnnzX3Cgm/
mwFPlLSEmADvxDwJSbTpKRyi8S4psAoaQnMLRbIx7m/FlS6Fq1kzuZAJu/ECcxe3
UYBgx+HVmqyxNE6/bBx4crJ6QyL1jtmjB7X+h+pwUqtfl5DS8VFIEOhGE53VUlYy
ozquo34g8LW1/GIUZjYxhObQwuR53hNQtqIs2mNAoTrcuHw3XmLypjIBm/S0W4CY
9P2bxOS9n/DEfxymqdYr8aHmEcWp3AawxJBoMp2+mwOxjc3ei5RGWH+prpOpU7Ea
EjBnuxcxH6n51pYaJf5sOXyf8+5VZcwFNfnnLHTt/NoKBhKLfiQ4nn0GcNElQqCK
4tXqbx75ev6YzsgSyRwdnKjIhGnZp2ttbkOm8c3i20sCgM4OeseeirbM4g4m6NHO
GUfbz+myHfq+ku4Oj7f5/mbgiwL/sImOtxieiYgxZ9PHrz3CXcx1kiwNzrBJzkSa
XjEnmDM7d4Pu6N6jzeeljw+0sLk4WGMOMLGGPyjSQcSSVTkbpvtbsCFa/qaVWHKY
62FfVnwJnCfmQ/Z0qrX2sVBN3Oz5/JYPmgRZLLXz7dHf3G+2kSA=
=zUfj
-----END PGP SIGNATURE-----

--oM63tVpmq+z9KtGU--