Return-Path: Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 15EF7C002D for ; Mon, 7 Nov 2022 21:27:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D679A60ACA for ; Mon, 7 Nov 2022 21:27:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D679A60ACA Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=HFG3iYZ7 X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -2.602 X-Spam-Level: X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2uNfWEUxT_v6 for ; Mon, 7 Nov 2022 21:27:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B66716058C Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by smtp3.osuosl.org (Postfix) with ESMTPS id B66716058C for ; Mon, 7 Nov 2022 21:27:21 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 09F4932009F9; Mon, 7 Nov 2022 16:27:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 07 Nov 2022 16:27:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1667856438; x=1667942838; bh=EFMiWFz5uzkeaEvsPuu4M6qUoLYM ObXVFkLroo65uIw=; b=HFG3iYZ7BVSwzONDTH/I9UvHg9xYNxCPCvzp8BRriJdc lPROkJG8OremwCujzXEfwAH7xZ+EWprIr5IpeM83sr+2RqSCRPHPiVaR9inFC4s/ d1+obXzvtGroLmvKcrO1DHwW4fQFcnSUPKyk6UuaDRRVox52+mMctdp9RxC/VTpd dA7SDuryHDD4+nH6GOm6Oh1hRaGsAwFOzPLAqNLpsh7wAFfa4vpL2qAqrifuda8l 7bEXL1rYa86Y2x4XWgy99CIQySc8QBTtYkKnuezNcM4pGXZd6rOoX+CfJmNCqK9C Z/33zg343qHBtQeuDH+zPXmrO0eysoh0iCK6jgEMZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdekgddugeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefrvghtvghr ucfvohguugcuoehpvghtvgesphgvthgvrhhtohguugdrohhrgheqnecuggftrfgrthhtvg hrnhepiedvvdelieekjeeukefgtdelfeegheehleffueehteeghfelveejfeelgeevffef necuffhomhgrihhnpehpvghtvghrthhouggurdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvsehpvghtvghrthhouggurdho rhhg X-ME-Proxy: Feedback-ID: i525146e8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 16:27:18 -0500 (EST) Received: by localhost (Postfix, from userid 1000) id 4A5305F83B; Mon, 7 Nov 2022 16:27:16 -0500 (EST) Date: Mon, 7 Nov 2022 16:27:16 -0500 From: Peter Todd To: Suhas Daftuar , Bitcoin Protocol Discussion Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s4k2R1rspeat7kBz" Content-Disposition: inline In-Reply-To: Subject: Re: [bitcoin-dev] Removing BIP-125 Rule #5 Pinning with the Always-Replaceable Invariant 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: Mon, 07 Nov 2022 21:27:23 -0000 --s4k2R1rspeat7kBz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 07, 2022 at 04:21:11PM -0500, Suhas Daftuar via bitcoin-dev wro= te: > Hello bitcoin-dev, >=20 > The description in the OP is completely broken for the simple reason that > Bitcoin transactions can have multiple inputs, and so a single transaction > can conflict with multiple in-mempool transactions. The proposal would > limit the number of descendants of each in-mempool transaction to > MAX_REPLACEMENT_CANDIDATES (note that this is duplicative of the existing > Bitcoin Core descendant limits), but a transaction that has, say, 500 > inputs might arrive and conflict with 500 unrelated in-mempool > transactions. This could result in 12,500 evictions -- far more than the > 100 that was intended. That's easy to fix: just sum up the number of nReplacementCandidates for ea= ch input in the multiple input case. Again, it'll overcount in the diamond cas= e. But so does the existing code. The goal is to defeat pinning by ensuring that you can always replace a transaction by double-spending an output; not that any possible way of double-spending multiple outputs at once would work. --=20 https://petertodd.org 'peter'[:-1]@petertodd.org --s4k2R1rspeat7kBz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmNpeDIACgkQLly11TVR LzeO1A/+MsOIViBy+U+dRfn5vFGIMGq0VpzHmcv5o3ua4/5R/E0glyHvn8YA2nPv y1tqb6kH+LZB+7lndGgHgpVdLmknDKaYVK5wvcck73PFXu3BgKeSt5/I3DA/1Qle lhfmfs3fP0bKa3Xhl2UeOV6moRrwZg+3Lt99kYGVHw8s8gORLpFtFashZFsZFRi9 Eqm6M0ELPncOkpTH/6ythf8nkOaQYb6bLWvOP1s3UBU/2bw4xR9KQtq6eYzk1kFN r3DIBm+sM3F/h7ga5CEHuMROc3YFhNru3czsgfi/I0NNOu/NylwmGCPcRTw4GmGN +9V0Dk/0wxQ1nZXdBE+6EDAqKF7ZPYcOGg+rDBWBGHSLnsLqmSY3pnPPeD3feGEs WffZLt7qUvgU8ONrEWIR67GS2GuYXJgaXwbgtPruDpd0naCUdT2OqggQxy09AtF1 5465XvM1z/ekzwNKV8pi2yot4AQZR6P9M1aVx8zm4Iic0jlqvzs4Q1wfUKNAPQ/G 1bhWRReGmuMvLRh2dN6MLDn3hkAasehba1MFF8aQhSc2FkjQ7iGg3a1csegeKH1G GJaC7vPbiiKNxs/E16DuY2Q+t30tiGUTWFpbsSVzILMPCJZTajgLWB6X2KPUCFVc c0MSF8gCUmv79xzFxxIxOQVb8zuaHgJdjSBJuqWXkoLQfyZhQkw= =hK7K -----END PGP SIGNATURE----- --s4k2R1rspeat7kBz--