Return-Path: Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 06551C0037 for ; 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 ; 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 ; 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 ; 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeltddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvvefukfhfgggtuggjsehgtd erredttddvnecuhfhrohhmpefrvghtvghrucfvohguugcuoehpvghtvgesphgvthgvrhht ohguugdrohhrgheqnecuggftrfgrthhtvghrnheptddtgedtffetueekfffhffekkeeihf etuddvteejueejffegveeghfduteejhfevnecuffhomhgrihhnpehgihhthhhusgdrtgho mhdpphgvthgvrhhtohguugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehpvghtvgesphgvthgvrhhtohguugdrohhrgh X-ME-Proxy: 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 To: Bitcoin Protocol Discussion Message-ID: References: <9a89eca8-61fd-4156-825d-c9b718dc3034@murch.one> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o/hm7mo8PdFUku3b" Content-Disposition: inline In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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--