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 ) 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 ; 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 (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 ; 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecuogfuuhhsphgvtghtffhomhgrihhnucdlgeelmd enucfjughrpeffhffvuffkgggtugesghdtreertddtjeenucfhrhhomheprfgvthgvrhcu vfhougguuceophgvthgvsehpvghtvghrthhouggurdhorhhgqeenucggtffrrghtthgvrh hnpeduheelffdtieeggefhkeektdetkeffvdektefhvdfgjeetvefhvdefffdvudevleen ucffohhmrghinhepghhithhhuhgsrdgtohhmpdhpvghtvghrthhouggurdhorhhgpdigrd gtohhmpdhgohhoghhlvgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehpvghtvgesphgvthgvrhhtohguugdrohhrgh X-ME-Proxy: Feedback-ID: i525146e8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; 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 To: bitcoindev@googlegroups.com Subject: [bitcoindev] Libre Relay v27.1 released with lower 1.25x replacement threshold Message-ID: 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: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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--