Return-Path: Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7966CC002D for ; Fri, 30 Dec 2022 23:29:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 386FE400C4 for ; Fri, 30 Dec 2022 23:29:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 386FE400C4 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=fm2 header.b=cPDV3GnN 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 MzlJlBrZtvgp for ; Fri, 30 Dec 2022 23:29:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B2222400A4 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by smtp2.osuosl.org (Postfix) with ESMTPS id B2222400A4 for ; Fri, 30 Dec 2022 23:29:06 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D9D505C0092; Fri, 30 Dec 2022 18:29:03 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 30 Dec 2022 18:29:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= fm2; t=1672442943; x=1672529343; bh=rQ6AShWk99sDSU8K0qQzuma5p7t1 Vx6Zek5ma//Noa8=; b=cPDV3GnN5ZrSRDgBD2QzIkul0kUV7P4BCWSgShBDxHm9 cS3Rxx3RLMjOsJS2tsioi58FrVadbCa+pfnS3R1Ma1Fq/DYe2vQ7bg4arbZGO38y 6nWU+AF1pyDq8jKSGDsZ6Kx3xuXTPLZ/CGDmcwyTpuonmZvX6JM4QSapjgG7EBd9 Jv1zRRPHbnnP/QjqbbheXLr63xoek8rkNuPhUXglNM7DIpMXMSDKwQKLY8SkzZld rB+F6t3ri/U4GNYqXJPPv743XIcCaHGoDTYJau/NhyNihCg0SbToGlB+c0LvVfSv EZg+Z7t11o56NR0hOw2T/qD+XqZ4vP+I7O4vVz8ktg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieejgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheprfgvthgvrhcuvfhougguuceophgvthgvsehpvghtvghrthho uggurdhorhhgqeenucggtffrrghtthgvrhhnpeelvdellefftddukeduffejgfefjeeuhe eileeftdfgteduteeggeevueethfejtdenucffohhmrghinhepphgvthgvrhhtohguugdr ohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvgesphgvthgvrhhtohguugdrohhrgh X-ME-Proxy: Feedback-ID: i525146e8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Dec 2022 18:29:02 -0500 (EST) Received: by localhost (Postfix, from userid 1000) id E95195F81A; Fri, 30 Dec 2022 18:28:58 -0500 (EST) Date: Fri, 30 Dec 2022 18:28:58 -0500 From: Peter Todd To: jk_14@op.pl Message-ID: References: <173552838-a7412589a40ea770709d0b227b056bd3@pmq5v.m5r2.onet> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Bg7LtgAK0yX9Bs4Z" Content-Disposition: inline In-Reply-To: <173552838-a7412589a40ea770709d0b227b056bd3@pmq5v.m5r2.onet> Cc: "bitcoin-dev@lists.linuxfoundation.org" Subject: Re: [bitcoin-dev] Pseudocode for robust tail emission 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: Fri, 30 Dec 2022 23:29:08 -0000 --Bg7LtgAK0yX9Bs4Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 23, 2022 at 07:43:36PM +0100, jk_14@op.pl wrote: >=20 > Necessary or not - it doesn't hurt to plan the robust model, just in case= =2E The proposal is: >=20 > Let every 210,000 the code calculate the average difficulty of 100 last r= etargets (100 fit well in 210,000 / 2016 =3D 104.166) > and compare with the maximum of all such values calculated before, every = 210,000 blocks: >=20 >=20 > if average_diff_of_last_100_retargets > maximum_of_all_previous_average_d= iffs > do halving > else > do nothing >=20 >=20 > This way: >=20 > 1. system cannot be played > 2. only in case of destructive halving: system waits for the recovery of = network security First of all - while I suspct you already understand this issue - I should point out the following: The immediate danger we have with halvings is that in a competitive market, profit margins tend towards marginal costs - the cost to produce an additio= nal unit of production - rather than total costs - the cost necessary to recover prior and future expenses. Since the halving is a sudden shock to the syste= m, under the right conditions we could have a significant amount of hashing po= wer just barely able to afford to hash prior to the halving, resulting in all t= hat hashing power immediately having to shut down and fees increasing dramatica= lly, and likely, chaotically. Your proposal does not address that problem as it= can only measure difficulty prior to the halving point. Other than that problem, I agree that this proposal would, at least in theo= ry, be a positive improvement on the status quo. But it is a hard fork and I do= n't think there is much hope for such hard forks to be implemented. I believe t= hat a demmurrage soft-fork, implemented via a storage fee averaged out over many future blocks, has a much more plausible route towards implementation. --=20 https://petertodd.org 'peter'[:-1]@petertodd.org --Bg7LtgAK0yX9Bs4Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmOvdDgACgkQLly11TVR LzcF7g//Z9S+Zj5O95i/1zET8cZknKkCfMqG/qWerTq1/vQK8tzYwSuxVdph6sCx TMz/rdrvl2GoJa8fn0XpMqVUHaq3hWveqAy2Mg6M3O2v+lInyJONpWolucKfI2YY ve/npVymPnYkW3ccgugBfgQBPyNbsI05WgZr7SAWeAiVF7rXAoPypsO7UaN/0Bzy kc6LekSoil27kRaPbScQYuf1YxQOxKOdybOR69bjlXp/N77hE9XQOPlGwSOFZufr s1nCZP4M2JriZ6E73P9fhDt6/8IYrwRJt8NP/uj8j0Q3INGc0UZxYFgYwJv6QuX6 wyHxqWtas3+lbZbf+5hVLmGMjmb3qq9Hn7anLZssuzCma7yYvfW4uJiCWIJlpDU9 sGmQU9lk9trdeXTJp2uGaB66ih9RzFMBGlZyBmfUfHFWcIsc3qdvoaYN9rDD1r+S jrQSbNB+PyHkiH1o2kRpQJGTYHgJE66N0rjLvK0UT5kXMFSxgFTj8nTwRgeffMXP IuzuO4tMcvr3383/XH2QUt+RFQ0vFehin9Ccy80/Uqv5obqAf0xZdjch500dMcNi mhd48dEsZh3zlRwX8SXlxzUgzzwSsrdO2u2MgG3Oyq1KMzSiT1MBL7lI7xOWLpEJ cGsCTH8OaP7R2hC4q6eFqs2HohJfJIFhqqeS7CXlCCsoRL9LSyU= =qJyA -----END PGP SIGNATURE----- --Bg7LtgAK0yX9Bs4Z--