summaryrefslogtreecommitdiff
path: root/2b/4b8b04cfb662961b5ea28bd805c3831a0fab3b
blob: 07578923b136a6e7742e65cbebcef50720d85c65 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
Return-Path: <akaramaoun@gmail.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id A8668BC6
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sat, 15 Sep 2018 16:01:23 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.7.6
Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com
	[209.85.128.45])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 6B16479F
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sat, 15 Sep 2018 16:01:22 +0000 (UTC)
Received: by mail-wm1-f45.google.com with SMTP id b19-v6so5021640wme.3
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Sat, 15 Sep 2018 09:01:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:sender:in-reply-to:references:from:date:message-id
	:subject:to:cc;
	bh=jRqc2aH+VBAaaz1K/OSBBZHTfS3xP4Gmoi6DI1gm85U=;
	b=TgkmJ/nNmslH8w04XJXXzQrygLZQfXLx5QnvAb0IHy/worrKdUpMPQIhtKX1Htef8I
	2/lRfopgh0LpcmKVT6/m4DOGWfqhMYpaLynFg3vTEy0r9ndwxHXxThDcWkGVB8zQcHbs
	M+PtS5UhPZzGfE4/wBXQY9w37x5NfxbNQfa9Lx3THVqN05A0zZW7tR0Ks8DipRhcpm3C
	wD24UnIBKa92/YdQqWncsoGlmm3SeZEwu4Y7F38eCAAYH+87HLYPVrcsgJtq9kLXna7z
	eHNgdxbsLdJ/9Vne9yYeEjGcsnT4X9MAEx8uc0SgQSVQ8qfzJ1u44R8SzZyVM+AiK/G9
	i3sQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
	:date:message-id:subject:to:cc;
	bh=jRqc2aH+VBAaaz1K/OSBBZHTfS3xP4Gmoi6DI1gm85U=;
	b=Yv8jESf3W0zQUN0JYH75Cju2PflSMX0smscf1pk406bmfUDeryuI7FZDQsmNgs0mfY
	LAFYl6fVGT7EzDoVe2ljRdSaP1rkOIM2dcxV3La4Hdy9zb5J75r1wIaKHwKDbA0gw5fK
	GOXsFey6xgvHkX3FTCY38OQZQEyrOAWGzyy8CitwwI+4nnud9LoKgBNmN6FncFtRPsMW
	AT7/HQptNAtDCqoTbD7lPhbuvkjJAp5d0TPeIBhQpChy15I0I3OKx9CV9MJcbBZt/bQn
	bJCGjmfTbO3DextzittDJWYzn2obo8XIUzxQwzrRfw9i2MFJ12OQzCa9OBdSZYoxJOas
	dw5Q==
X-Gm-Message-State: APzg51C9Wf2hQlA83Jry2UVbQFpJd8831JstbLaRS0oFcajB0X7pvFOU
	dnMyOvwRgv/YBKPUWCB/mVTtoYrMP/+Q/tCnpvw=
X-Google-Smtp-Source: ANB0VdaKxXkeLnzXJGlYawOJfghNbrN0bZN7NARovTao25u2LGLaZ9xRQHYEmcAJqIbUIgNN1qF19rrTmriQab4pQGs=
X-Received: by 2002:a1c:b6d6:: with SMTP id
	g205-v6mr5819154wmf.17.1537027280837; 
	Sat, 15 Sep 2018 09:01:20 -0700 (PDT)
MIME-Version: 1.0
Sender: akaramaoun@gmail.com
Received: by 2002:a1c:e1c4:0:0:0:0:0 with HTTP; Sat, 15 Sep 2018 09:01:19
	-0700 (PDT)
In-Reply-To: <PS2P216MB017942E0336DD337CB1EB6A89D180@PS2P216MB0179.KORP216.PROD.OUTLOOK.COM>
References: <CAL8tG=k+kXHMbQdUXO3BXKv7fQwp5t2QuaQut7sPUtEYgwzn0A@mail.gmail.com>
	<CAL8tG=mui_izrob0V66QqNzSJs1Lpbm0xxUYMpzb65-JR9QhRw@mail.gmail.com>
	<PS2P216MB017942E0336DD337CB1EB6A89D180@PS2P216MB0179.KORP216.PROD.OUTLOOK.COM>
From: Andrew <onelineproof@gmail.com>
Date: Sat, 15 Sep 2018 16:01:19 +0000
X-Google-Sender-Auth: u7fJ5wDBSK0865tS4WJTH7-3sUE
Message-ID: <CAL8tG==LgUecK5bbZ-FcwSZvJzVuK3nGu6cCUNFMPi4uR0CriA@mail.gmail.com>
To: Damian Williamson <willtech@live.com.au>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
X-Mailman-Approved-At: Sat, 15 Sep 2018 18:01:12 +0000
Cc: Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] Selfish Mining Prevention
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
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: Sat, 15 Sep 2018 16:01:23 -0000

@Moral Agent: No problem. I did ask in the first post what the current
plans are for selfish miner prevention. So if anyone has any other
relevant ideas (not just for selfish mining but for making mining more
decentralized and competetive), then please post it, but I just prefer
to focus on my proposal more than others.

@Damian: I think you are concerned that this will incentivize more
global resource consumption and will be detrimental to our
environment? Personally, I believe centralization of energy does more
harm to the environment rather than total energy consumption. If
Bitcoin helps "power" to become more decentralized, then I wouldn't be
surprised if total (global) energy consumption actually decreases. The
debt based economy is forcing us to continuously grow and use up more
resources, and collectivism is turning individuals into
super-organisms capable of doing much more harm to the environment
than can be done by one or a just a few individuals working
independently. In my proposal, I actually allow for changing
environmental conditions by measuring only the peak hashrate of the
past year, and not the full history of blocks.

On Sat, Sep 15, 2018 at 5:29 AM, Damian Williamson <willtech@live.com.au> wrote:
>>This "reserve" part of the fee will be paid to miners if the hashrate
>> rises.
>
>
> Anticipating ongoing hashrate rise shows that you have not yet thought about
> moving outside of the current greed model, a model wherein mining will
> consume all available resources within the colony's objective just to spread
> as far as possible with each new miner bringing diminishing individual
> returns and shortening the life of Earth for no additional gain. Greed model
> := bacteria.
>
> ________________________________
> From: bitcoin-dev-bounces@lists.linuxfoundation.org
> <bitcoin-dev-bounces@lists.linuxfoundation.org> on behalf of Andrew via
> bitcoin-dev <bitcoin-dev@lists.linuxfoundation.org>
> Sent: Friday, 14 September 2018 9:19:37 AM
> To: Bitcoin Dev
> Subject: Re: [bitcoin-dev] Selfish Mining Prevention
>
> I discussed this more at bitcointalk:
> https://bitcointalk.org/index.php?topic=4998410.0
>
> The attacks I'm interested in preventing are not only selfish mining
> and collusion, but also more subtle attacks like block withholding,
> and in general anything that aims to drive out the competition in
> order to increase hashrate fraction. I also scrapped the idea of
> changing the block subsidies, and I am only focuses on fees.
>
> You can read more about the motivation and details in the bitcointalk
> thread, but my proposal in short would be to add the concept of
> "reserve fees". When a user makes a transaction, for each txout
> script, they can add parameters that specify the fraction of the total
> fee that is held in "reserve" and the time it is held in "reserve"
> (can set a limit of 2016 blocks). This "reserve" part of the fee will
> be paid to miners if the hashrate rises. So if hashrate is currently h
> and peak hashrate (from past year) is p, then for each period (1 day),
> a new hashrate is calculated h1, and if h1 > h, then the fraction
> (h1-h)/p from the reserve fees created in the past 2016 blocks will be
> released to miners for that period (spread out over the 144 blocks in
> that period). And this will keep happening as long as hashrate keeps
> rising, until the "contract" expires, and the leftover part can be
> used by the owner of the unspent output, but it can only be used for
> paying fees, not as inputs for future transactions (to save on block
> space).
>
> This should incentivize miners to not drive out the competition, since
> if they do, there will be less of these reserve fees given to miners.
> Yes in the end the miners will get all the fees, but with rising
> hashrate they get an unconditional subsidy that does not require
> transactions, thus more space for transactions with fees.
>
> I can make a formal BIP and pull request, but I need to know if there
> is interest in this. Now fees don't play such a large part of the
> block reward, but they will get more important, and this change
> wouldn't force anything (would be voluntary by each user), just miners
> have to agree to it with a soft fork (so they don't spend from the
> anyone-can-spend outputs used for reserve fees). Resource requirements
> for validation are quite small I believe.
>
> On Sat, Sep 1, 2018 at 12:11 AM, Andrew <onelineproof@gmail.com> wrote:
>> As I understand, selfish mining is an attack where miners collude to
>> mine at a lower hashrate then with all miners working independently.
>> What are the current strategies used to prevent this and what are the
>> future plans?
>>
>> One idea I have is to let the block reward get "modulated" according
>> to peak hashrate. Say p is the peak hashrate for 365 periods (1 year)
>> consisting of 144 blocks, h is the hashrate of the last 144 block (1
>> day) period, and r is the base subsidy (12.5 BTC currently). You can
>> then make the max block reward 0.5 r (1 + h/p). So if hashrate is at
>> peak you get the full reward. Otherwise you get less, down to a min of
>> 0.5 r.
>>
>> If miners were to collude to mine at a lower than peak hashrate, then
>> they may be able to do it profitably for 144 blocks, but after that,
>> the reward would get modulated and it wouldn't be so much in their
>> interest to continue mining at the lower hashrate.
>>
>> What flaws are there with this? I know it could be controversial due
>> to easier mining present for early miners, so maybe it would have to
>> be done in combination with a new more dynamic difficulty adjustment
>> algorithm. But I don't see how hashrate can continue rising
>> indefinitely, so a solution should be made for selfish mining.
>>
>> Also when subsidies stop and a fee market is needed, I guess a portion
>> of the fees can be withheld for later if hashrate is not at peak.
>>
>>
>> --
>> PGP: B6AC 822C 451D 6304 6A28  49E9 7DB7 011C D53B 5647
>
>
>
> --
> PGP: B6AC 822C 451D 6304 6A28  49E9 7DB7 011C D53B 5647
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev



-- 
PGP: B6AC 822C 451D 6304 6A28  49E9 7DB7 011C D53B 5647