Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 73A88904 for ; Sat, 22 Aug 2015 00:06:28 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-vk0-f65.google.com (mail-vk0-f65.google.com [209.85.213.65]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 4122CFE for ; Sat, 22 Aug 2015 00:06:27 +0000 (UTC) Received: by vkfi73 with SMTP id i73so2766375vkf.3 for ; Fri, 21 Aug 2015 17:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bFE5myraWK6sAJ3MQd8kRrVxQzDJ1iIG+xJUrmLP5BI=; b=jGCCsQ0QIrgBOs+Qsl+DfYbki6bk5flzgS1KmjqA1PzBNsAt3HcavPQkkeiWMxO3YD JLDV5bPzR2l4I3rivYABozjvwK9lASbPmub3ORHrQ5zUJGglgcqcoRlC/qh1MyAsS0c9 F/Iv7+jRymEUEUKKmP2xBviu7EEWXwCU3z9U6rUd/zSF9N8hOUclRvbVPDZtWQCaPEej VijryeD7bTAvKP8OOn4XUL0syrMMwgqG3myofb8f/k++72nXt6LlETvIiHAOzUqbMVXw 0wwoyAo7RuvEmGe3qFu6ydE9ROU3YTJ6r+dqnQEykTyqxhsGC3gtQdYT6KRsLDf9penX 3YuA== MIME-Version: 1.0 X-Received: by 10.52.9.68 with SMTP id x4mr14192673vda.90.1440201986405; Fri, 21 Aug 2015 17:06:26 -0700 (PDT) Received: by 10.31.109.134 with HTTP; Fri, 21 Aug 2015 17:06:26 -0700 (PDT) In-Reply-To: References: Date: Sat, 22 Aug 2015 01:06:26 +0100 Message-ID: From: Ahmed Zsales To: Btc Drak Content-Type: multipart/alternative; boundary=20cf303345d7cdfb72051ddb27db X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] Consensus based block size retargeting algorithm (draft) X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2015 00:06:28 -0000 --20cf303345d7cdfb72051ddb27db Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Interesting. Unless I misunderstand the proposal, you would have to factor a way to deal with miner cartel behavior. A few emails every week and the larger miners could collude to set prices. With that figured, then your voting proposal could be triggered by a moving day block average which takes into account capacity for any given period, plus a level of headroom for unexpected spikes. The issue with this is forward planning is more important, especially when the moving average is longer than a week. Credit card providers and retailers use a number of factors to plan for capacity on a regional basis. From previous years figures, long-term weather forecasts, annual calendar events, one off events, etc. A global currency can't use many of these tools for forward planning. E.g. religious holidays are among the biggest events for transactions; if we take Christmas, your proposal could work out a capacity during a quiet period in November leading to a downward adjustment which then sees transactions getting maxed out during the two weeks before Christmas eve. You could then have an upward adjustment, but people stop spending on Christmas day. These are human factors that need to be considered. On Fri, Aug 21, 2015 at 11:22 PM, Btc Drak via bitcoin-dev < bitcoin-dev@lists.linuxfoundation.org> wrote: > I wanted to offer a potential way to adjust the block size limit in a > democratic way without making it easy to game. This is meant only as a > starting point for a general idea. Thresholds and exact figures and > the details of the algorithm are up for debate, and possibly some > formula based determination. > > The living document is currently a gist available at > https://gist.github.com/btcdrak/1c3a323100a912b605b5 > > >
>   BIP: XX
>   Title: Consensus based block size retargeting algorithm
>   Author: BtcDrak 
>   Status: Draft
>   Type: Standards Track
>   Created: 2015-08-21
> 
> > =3D=3DAbstract=3D=3D > > A method of altering the maximum allowed block size of the Bitcoin > protocol using a consensus based approach. > > =3D=3DMotivation=3D=3D > > There is a perception that Bitcoin cannot easily respond to raising > the blocksize limit if popularity was to suddenly increase due to a > mass adoption curve, because co-ordinating a hard fork takes > considerable time, and being unable to respond in a timely manner > would irreparably harm the credibility of bitcoin. > > Additionally, predetermined block size increases are problematic > because they attempt to predict the future, and if too large could > have unintended consequences like damaging the possibility for a fee > market to develop as block subsidy decreases substantially over the > next 9 years; introducing or exacerbating mining attack vectors; or > somehow affect the network in unknown or unpredicted ways. Since fixed > changes are hard to deploy, the damage could be extensive. > > Dynamic block size adjustments also suffer from the potential to be > gamed by the larger hash power. > > > =3D=3DRationale=3D=3D > > By introducing a cost to increase the block size ensures the mining > community will collude to increase it only when there is a clear > necessity, and reduce it when it is unnecessary. Rogue miners cannot > force their wishes so easily because not only will they have to pay > extra a difficulty target, then can be downvoted at no cost by the > objecting hash power. > > > =3D=3DSpecification=3D=3D > > The initial "base block size limit" shall be 1MB. > > Miners can vote for a block size increase by signalling the proposed > percentage increase of the "base block size limit" in the coinbase > field. For the vote to be considered valid the block they mine must > meets a difficulty target which is proportionally larger than the > standard difficulty target based on the percentage increase they voted > for. If a miner does not vote, or the vote is invalid, it shall be > counted as a vote for no change. > > Miners may vote the size down by signalling in the coinbase field > without paying a difficulty penalty. > > Every 2016 blocks, the maximum allowed block size will be recalculated > by the average of all votes in the last 2016 blocks, i.e. sum each > vote from each block and divide by 2016 then multiply by the base > block size limit. This will redefine the base block size limit for the > next 2016 blocks. > > Blocks that are larger than the calculated base block size limit are > invalid and MUST be rejected. > > The maximum change up or down each retargeting period shall be limited > to 10% of the base block size limit. > > The maximum block size may not increase above 8MB. > > Votes shall be cast by adding the following human readable multiplier > to the coinbase string =E2=80=9C/BXn.nnn/=E2=80=9D where valid votes woul= d exist > between the ranges =E2=80=9C/BX0.900/=E2=80=9D (10% decrease) and =E2=80= =9C/BX1.100/=E2=80=9D (10% > increase). =E2=80=9C/BX1.000/=E2=80=9D would be a vote for no change. Inv= alid votes > will be counted as a vote for no change: =E2=80=9C/BX1.000/=E2=80=9D. > > > =3D=3DAcknowledgements=3D=3D > > This proposal is based on ideas and concepts derived from the writings > of Meni Rosenfeld and Gregory Maxwell. > > > =3D=3DCopyright=3D=3D > > This work is placed in the public domain. > _______________________________________________ > bitcoin-dev mailing list > bitcoin-dev@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev > --20cf303345d7cdfb72051ddb27db Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Interesting.

Unless I misunderstand the= proposal, you would have to factor a way to deal with miner cartel behavio= r. A few emails every week and the larger miners could collude to set price= s.=C2=A0

With that figured, then your voting propo= sal could be triggered by a moving day block average which takes into accou= nt capacity for any given period, plus a level of headroom for unexpected s= pikes. The issue with this is forward planning is more important, especiall= y when the moving average is longer than a week.=C2=A0

Credit card providers and retailers use a number of factors to pla= n for capacity on a regional basis. From previous years figures, long-term = weather forecasts, annual calendar events, one off events, etc. A global cu= rrency can't use many of these tools for forward planning.=C2=A0
<= div>
E.g. religious holidays are among the biggest events for= transactions; if we take Christmas, your proposal could work out a capacit= y during a quiet period in November leading to a downward adjustment which = then sees transactions getting maxed out during the two weeks before Christ= mas eve. You could then have an upward adjustment, but people stop spending= on Christmas day.

These are human factors that ne= ed to be considered.=C2=A0

On Fri, Aug 21, 2015 at 11:22 PM, Btc Drak via bitcoin= -dev <bitcoin-dev@lists.linuxfoundation.org> wrote:
I wanted to offer a potential= way to adjust the block size limit in a
democratic way without making it easy to game. This is meant only as a
starting point for a general idea. Thresholds and exact figures and
the details of the algorithm are up for debate, and possibly some
formula based determination.

The living document is currently a gist available at
https://gist.github.com/btcdrak/1c3a323100a912b6= 05b5


<pre>
=C2=A0 BIP: XX
=C2=A0 Title: Consensus based block size retargeting algorithm
=C2=A0 Author: BtcDrak <btcdrak@gma= il.com>
=C2=A0 Status: Draft
=C2=A0 Type: Standards Track
=C2=A0 Created: 2015-08-21
</pre>

=3D=3DAbstract=3D=3D

A method of altering the maximum allowed block size of the Bitcoin
protocol using a consensus based approach.

=3D=3DMotivation=3D=3D

There is a perception that Bitcoin cannot easily respond to raising
the blocksize limit if popularity was to suddenly increase due to a
mass adoption curve, because co-ordinating a hard fork takes
considerable time, and being unable to respond in a timely manner
would irreparably harm the credibility of bitcoin.

Additionally, predetermined block size increases are problematic
because they attempt to predict the future, and if too large could
have unintended consequences like damaging the possibility for a fee
market to develop as block subsidy decreases substantially over the
next 9 years; introducing or exacerbating mining attack vectors; or
somehow affect the network in unknown or unpredicted ways. Since fixed
changes are hard to deploy, the damage could be extensive.

Dynamic block size adjustments also suffer from the potential to be
gamed by the larger hash power.


=3D=3DRationale=3D=3D

By introducing a cost to increase the block size ensures the mining
community will collude to increase it only when there is a clear
necessity, and reduce it when it is unnecessary. Rogue miners cannot
force their wishes so easily because not only will they have to pay
extra a difficulty target, then can be downvoted at no cost by the
objecting hash power.


=3D=3DSpecification=3D=3D

The initial "base block size limit" shall be 1MB.

Miners can vote for a block size increase by signalling the proposed
percentage increase of the "base block size limit" in the coinbas= e
field. For the vote to be considered valid the block they mine must
meets a difficulty target which is proportionally larger than the
standard difficulty target based on the percentage increase they voted
for. If a miner does not vote, or the vote is invalid, it shall be
counted as a vote for no change.

Miners may vote the size down by signalling in the coinbase field
without paying a difficulty penalty.

Every 2016 blocks, the maximum allowed block size will be recalculated
by the average of all votes in the last 2016 blocks, i.e. sum each
vote from each block and divide by 2016 then multiply by the base
block size limit. This will redefine the base block size limit for the
next 2016 blocks.

Blocks that are larger than the calculated base block size limit are
invalid and MUST be rejected.

The maximum change up or down each retargeting period shall be limited
to 10% of the base block size limit.

The maximum block size may not increase above 8MB.

Votes shall be cast by adding the following human readable multiplier
to the coinbase string =E2=80=9C/BXn.nnn/=E2=80=9D where valid votes would = exist
between the ranges =E2=80=9C/BX0.900/=E2=80=9D (10% decrease) and =E2=80=9C= /BX1.100/=E2=80=9D (10%
increase). =E2=80=9C/BX1.000/=E2=80=9D would be a vote for no change. Inval= id votes
will be counted as a vote for no change: =E2=80=9C/BX1.000/=E2=80=9D.


=3D=3DAcknowledgements=3D=3D

This proposal is based on ideas and concepts derived from the writings
of Meni Rosenfeld and Gregory Maxwell.


=3D=3DCopyright=3D=3D

This work is placed in the public domain.
_______________________________________________
bitcoin-dev mailing list
bitcoin-dev@lists.= linuxfoundation.org
https://lists.linuxfoundation.org/mail= man/listinfo/bitcoin-dev

--20cf303345d7cdfb72051ddb27db--