summaryrefslogtreecommitdiff
path: root/91/45cf02d69e6c1424f758336d81455c8b63ebc6
blob: b1ac691170cdea1659f538ec67ad58729b684956 (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
Return-Path: <pete@petertodd.org>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 06551C0037
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 24 Jan 2024 04:44:24 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp2.osuosl.org (Postfix) with ESMTP id AA67C435C6
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 24 Jan 2024 04:44:23 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org AA67C435C6
Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key,
 unprotected) header.d=messagingengine.com header.i=@messagingengine.com
 header.a=rsa-sha256 header.s=fm3 header.b=p8o3kfIi
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001,
 RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Received: from smtp2.osuosl.org ([127.0.0.1])
 by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id vRXDhrLmIAHx
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 24 Jan 2024 04:44:21 +0000 (UTC)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com
 [66.111.4.25])
 by smtp2.osuosl.org (Postfix) with ESMTPS id 468924246F
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 24 Jan 2024 04:44:21 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 468924246F
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id A6ED65C00B9;
 Tue, 23 Jan 2024 23:44:18 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162])
 by compute3.internal (MEProxy); Tue, 23 Jan 2024 23:44:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:subject:subject:to
 :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
 fm3; t=1706071458; x=1706157858; bh=e9OKsVjGN8swoRzgpt1v4pRsJtX2
 0FkrIoXkm1VaadI=; b=p8o3kfIiUr8ypIhqghhpYNPngK5QYCZe2V9hqPcSfy7v
 R07VWl1rkygtrNzaspTrF7+SUuEiz2cbiDM3z3jx4yORINMbZZrKJWBuGkkfkRZ2
 gDf8r0KlEmt+w/ti3lLxh6ZOny13yH1AqyZLzHJQRKu42fh2DTpau62SvA3Loxtv
 pJi6JDJpdeRc34oRn/tBhvVTt/AjO+s6XA5bZlCgUUVZ92YmmXRMGulfB6OT9xKt
 no0bGS9ZjI+XRtYMSVJAI4iCoNakU+P6PhXOew5jnq6IEc+9C9NYTdKdato26rHy
 5IzbpO+wRn9y6KwesD387zJHFX/i8f/i4GwTsqDMxg==
X-ME-Sender: <xms:opWwZeE7hjYvCbND6KHWGsAEVhCe_4jq1mF1BB6PPBOwKay6QUUD8A>
 <xme:opWwZfXAVWppabGNIaRGzkux1cJYnlDgMjG7o5dp9EIhZtAeFAaU_vy5u5OlZdab9
 KjKIq74KoXT-uBd5BI>
X-ME-Received: <xmr:opWwZYKeG6EJDj7mWdcCzkuYV3wc6b2NnqKov9PvJHJABQysMK7Lusgn1g>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeltddggedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehgtd
 erredttddvnecuhfhrohhmpefrvghtvghrucfvohguugcuoehpvghtvgesphgvthgvrhht
 ohguugdrohhrgheqnecuggftrfgrthhtvghrnheptddtgedtffetueekfffhffekkeeihf
 etuddvteejueejffegveeghfduteejhfevnecuffhomhgrihhnpehgihhthhhusgdrtgho
 mhdpphgvthgvrhhtohguugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh
 grmhepmhgrihhlfhhrohhmpehpvghtvgesphgvthgvrhhtohguugdrohhrgh
X-ME-Proxy: <xmx:opWwZYG15olN6sxGuh1KxELIlTrZoT5sZRY3zn0XYyMiGI6ZK_wf5A>
 <xmx:opWwZUXyfGu2SFAgAxnrMy6rSv5_QvejSAhb3PBuBgEw24xHxQipPQ>
 <xmx:opWwZbPBX7QaEULKnGBnGmALse3gR8_bYHuwBwxOlyixd0O5fN6pEw>
 <xmx:opWwZSxmhTvs4Bp13Yghtw7DOB5ruLJD9_s2vkDNTKtmBP3b1spcfQ>
Feedback-ID: i525146e8:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue,
 23 Jan 2024 23:44:18 -0500 (EST)
Received: by localhost (Postfix, from userid 1000)
 id 12B5B5F84B; Wed, 24 Jan 2024 04:44:14 +0000 (UTC)
Date: Wed, 24 Jan 2024 04:44:14 +0000
From: Peter Todd <pete@petertodd.org>
To: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Message-ID: <ZbCVnl8HbREQV5su@petertodd.org>
References: <Zalsq+Nq7RRr/CAR@petertodd.org>
 <9a89eca8-61fd-4156-825d-c9b718dc3034@murch.one>
 <Za7xkUsoeACMv6Fw@petertodd.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="o/hm7mo8PdFUku3b"
Content-Disposition: inline
In-Reply-To: <Za7xkUsoeACMv6Fw@petertodd.org>
Subject: Re: [bitcoin-dev] One-Shot Replace-By-Fee-Rate
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: Wed, 24 Jan 2024 04:44:24 -0000


--o/hm7mo8PdFUku3b
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 22, 2024 at 10:52:01PM +0000, Peter Todd via bitcoin-dev wrote:
> An even simpler fix would be to just require that all unconfirmed inputs =
in a
> replacement come from the *same* replaced transaction. That would make ce=
rtain
> rare, but economically viable, replacements infeasible. But it would defi=
nitely
> fix the issue.

FYI I've implemented this fix, and pure replace-by-fee-rate with a minimum =
2x
fee-rate increate, in my Libre Relay fork:

https://github.com/petertodd/bitcoin/tree/libre-relay-v26.0

Similar to my full-RBF peering fork, it uses a new service bit to ensure it=
's
peering with other Libre Relay nodes to make transaction propagation actual=
ly
works.

I wouldn't call this a "public" release at this point. But people are welco=
me
to review the code and try it out. I have a few mainnet and testnet nodes
running it right now.

I'm *very* interested if anyone else can find any further exploits in the p=
ure
replace-by-fee-rate code. I'm also interested to see if anyone bothers to s=
pend
the money to do the well-known, and expensive, replace-by-fee-rate DoS atta=
cks.

The fun thing about this release, is Libre Relay also removes the restricti=
ons
on OP_Return, which I'm sure will make some people quite angry... So maybe
that'll give someone an incentive to attack it. :D I'm already sufficiently
well connected to get oversized OP_Return's mined. So if you want to do that
too, running a Libre Relay node will work.

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

--o/hm7mo8PdFUku3b
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmWwlZsACgkQLly11TVR
LzeIIQ/+OimLNhGmVZy9BCwxO3WVwkeeoDdoz79sgAwlRYfPpd4ehmLh78q99ssl
hsTuEhaVrqqUytnR03xiffNtAlV1JzUft6H8BJ34cIxvLYqsYsP0a2ZZkDnvS+qE
J/0NyKYf8bKNf8IWmiKE/+fOWHeGk0064dwfQjF7jLxkUFTiAcaf2Ua5nwBH2U6/
BRNVfuiWUcyHs4sefEnNoiDlpdamEyueMiN76D83DxnP3bKMj2/da0mcOm5gSIY8
0+pSfKMXsaedcU38Tk8V5Nwic6Da+Nu1+DcX5wCjx+v5muojr92+6kRmJvXrZLdl
Idsqj7nM86wW4lym1/aOvqmHlNBH/FS9zlzksrlyzczcj53nPi1I8GjL+g05NVdi
d/VXg1N1jEc4FO2ZE1GXmKuQze6ym554HKGVUi84+tcsGxxTKf4AQsHrGp1+F0cz
3WrLAAxjsOgkMYae/049dqFf5D28MKkdcip5D3CpNDER4WzAp0rS96A7ny6934iS
RVkocqmV6iPOhyF75K/OrNoWG9lGlCZNb6+CL+jMzKNvCcl+m6mOmcj+IiCpRWhB
tGBN5ureDGMZi1uCJFNP4eyWCwaxfPBTTrCIE6qAtDEgICPYjCvY9cOaxpOtcFdL
/axrxo0gZFb9xIhNR0mZ/xt7qrW6dk8mpUSNPNY4Jgvg0o+xaz4=
=R5pK
-----END PGP SIGNATURE-----

--o/hm7mo8PdFUku3b--