summaryrefslogtreecommitdiff
path: root/e9/7344852f69ac0cb6a4b0b1b983b5f9f285483e
blob: da62893f25dec73b31bfa39d06a8bc393bf8fb41 (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
Return-Path: <jk_14@op.pl>
Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])
 by lists.linuxfoundation.org (Postfix) with ESMTP id BFC05C0070
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 23 Dec 2022 18:43:49 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp4.osuosl.org (Postfix) with ESMTP id 8635E416F1
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 23 Dec 2022 18:43:49 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8635E416F1
Authentication-Results: smtp4.osuosl.org;
 dkim=pass (1024-bit key) header.d=op.pl header.i=@op.pl header.a=rsa-sha256
 header.s=2011 header.b=DqgVCMeU
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -0.7
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from smtp4.osuosl.org ([127.0.0.1])
 by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id BoRolDx3LYae
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 23 Dec 2022 18:43:48 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 02ED5415E0
Received: from smtpo95.poczta.onet.pl (smtpo95.poczta.onet.pl
 [213.180.149.148])
 by smtp4.osuosl.org (Postfix) with ESMTPS id 02ED5415E0
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Fri, 23 Dec 2022 18:43:47 +0000 (UTC)
Received: from pmq5v.m5r2.onet (pmq5v.m5r2.onet [10.174.35.25])
 by smtp.poczta.onet.pl (Onet) with ESMTP id 4Ndx0D15KqzljGVP;
 Fri, 23 Dec 2022 19:43:40 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=op.pl; s=2011;
 t=1671821020; bh=dQf38W2oYlyNKfbQk0Zym4y6x1UOBb4itMbJSOuh3x4=;
 h=From:Cc:To:Date:Subject:From;
 b=DqgVCMeUMozwP+WpTjJSaqTHFy8j6ktjF/Xc9ACBvGM0WN4G6ZZOmVZi2IqzurIpp
 /2r3uWQ/uhwp+HmMxHg0FfRg2XdTdwYJrTAYKNWj0SjW4K6hi3mE9kBJM6bKoEyF/j
 IG9Y0ZuX9Hx/j4cUP13yLxvKW0Bh4tT/sfs2/r9g=
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Received: from [89.64.65.221] by pmq5v.m5r2.onet via HTTP id ;
 Fri, 23 Dec 2022 19:43:40 +0100
From: jk_14@op.pl
X-Priority: 3
To: "bitcoin-dev@lists.linuxfoundation.org"
 <bitcoin-dev@lists.linuxfoundation.org>
Date: Fri, 23 Dec 2022 19:43:36 +0100
Message-Id: <173552838-a7412589a40ea770709d0b227b056bd3@pmq5v.m5r2.onet>
X-Mailer: onet.poczta
X-Onet-PMQ: <jk_144@onet.pl>;89.64.65.221;PL;2
X-ONET_PL-MDA-SEGREGATION: 0
X-Mailman-Approved-At: Fri, 23 Dec 2022 19:29:07 +0000
Subject: [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 <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: Fri, 23 Dec 2022 18:43:49 -0000


Necessary or not - it doesn't hurt to plan the robust model, just in case. =
The proposal is:

Let every 210,000 the code calculate the average difficulty of 100 last ret=
argets (100 fit well in 210,000 / 2016 =3D 104.166)
and compare with the maximum of all such values calculated before, every 21=
0,000 blocks:


if average_diff_of_last_100_retargets > maximum_of_all_previous_average_dif=
fs
	do halving
else
	do nothing


This way:

1. system cannot be played
2. only in case of destructive halving: system waits for the recovery of ne=
twork security


Best Regards
Jaroslaw