Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id D917F847 for ; Fri, 21 Aug 2015 21:45:38 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 3CC42E2 for ; Fri, 21 Aug 2015 21:45:38 +0000 (UTC) Received: by iodb91 with SMTP id b91so95644442iod.1 for ; Fri, 21 Aug 2015 14:45:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=FjD+3+V8C+oTPXxRo73eThSftGSzJJ4NAkqF4JBfjl8=; b=cFsYc4EolD7LIGlkWOL6oIPhHvSmCcWV1MxALxWji+VYUa/W/0PxsYiETaum2WNN04 Hq/eItF96nhXkmEC5MgrHdvTgqVvQD1Kn0vMQ/WTBn36T1YgFKPw0uW0BAixB4G5FBIE jcqv4jaLoU/b0TikT6u6unm45bVpCIyLeGAWRbNmPkcT5IMpHyVrBVlyp0PWSCsjFThH YVeZiYquglhG/cM71cBelEWF/pPJdCVxwV7A2Q404ewAcftInHvtBeNQcTqfd3zdZOfU Bp5Rz8P/yDteiC17sa5/GHtY/j3Cl3jls2Ja7v1p5FA+MdNOVhYOeD0DYP0l27+i2dPB GIXQ== X-Gm-Message-State: ALoCoQkt4m0h/EmiiGE/eBlC7CeOYpYHvpqB/ersYTAICLauQ9dLMRhsb0DXfDLKEIIY+hdXi71W MIME-Version: 1.0 X-Received: by 10.107.19.94 with SMTP id b91mr8583481ioj.144.1440193537355; Fri, 21 Aug 2015 14:45:37 -0700 (PDT) Received: by 10.107.18.155 with HTTP; Fri, 21 Aug 2015 14:45:37 -0700 (PDT) X-Originating-IP: [115.187.53.147] Date: Sat, 22 Aug 2015 03:15:37 +0530 Message-ID: From: Upal Chakraborty To: bitcoin-dev@lists.linuxfoundation.org Content-Type: multipart/alternative; boundary=001a113f3c7033d746051dd930c8 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,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 Subject: [bitcoin-dev] Dynamically Controlled Bitcoin Block Size Max Cap 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: Fri, 21 Aug 2015 21:45:39 -0000 --001a113f3c7033d746051dd930c8 Content-Type: text/plain; charset=UTF-8 I have tried to solve the maximum block size debate in two different proposal. i. Depending only on previous block size calculation. ii. Depending on previous block size calculation and previous Tx fee collected by miners. Proposal 1: Depending only on previous block size calculation If more than 50% of block's size, found in the first 2000 of the last difficulty period, is more than 90% MaxBlockSize Double MaxBlockSize Else if more than 90% of block's size, found in the first 2000 of the last difficulty period, is less than 50% MaxBlockSize Half MaxBlockSize Else Keep the same MaxBlockSize Proposal 2: Depending on previous block size calculation and previous Tx fee collected by miners TotalTxFeeInLastButOneDifficulty = Sum of all Tx fees of first 2008 blocks in last 2 difficulty period TotalTxFeeInLastDifficulty = Sum of all Tx fees of second 2008 blocks in last 2 difficulty period (This actually includes 8 blocks from last but one difficulty) If ( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 > 50% MaxBlockSize) AND (TotalTxFeeInLastDifficulty > TotalTxFeeInLastButOneDifficulty) ) MaxBlockSize = TotalTxFeeInLastDifficulty * MaxBlockSize / TotalTxFeeInLastButOneDifficulty Else If ( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 < 50% MaxBlockSize) AND (TotalTxFeeInLastDifficulty < TotalTxFeeInLastButOneDifficulty) ) MaxBlockSize = TotalTxFeeInLastDifficulty * MaxBlockSize / TotalTxFeeInLastButOneDifficulty Else Keep the same MaxBlockSize Details: http://upalc.com/maxblocksize.php Requesting for comment. --001a113f3c7033d746051dd930c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have tried to solve the maximum block size debate i= n two different proposal.

i. Depending only on pre= vious block size calculation.

ii. Depending on pre= vious block size calculation and previous Tx fee collected by miners.
=


Proposal 1: Depending only on previous b= lock size calculation

If more than 50% of block= 9;s size, found in the first 2000 of the last difficulty period, is more th= an 90% MaxBlockSize
=C2=A0 =C2=A0 Double MaxBlockSize
E= lse if more than 90% of block's size, found in the first 2000 of the la= st difficulty period, is less than 50% MaxBlockSize
=C2=A0 =C2=A0= Half MaxBlockSize
Else
=C2=A0 =C2=A0 Keep the same Max= BlockSize
Proposal 2: Depending on previous block size calculat= ion and previous Tx fee collected by miners

TotalT= xFeeInLastButOneDifficulty =3D Sum of all Tx fees of first 2008 blocks in l= ast 2 difficulty period
TotalTxFeeInLastDifficulty =3D Sum of all= Tx fees of second 2008 blocks in last 2 difficulty period (This actually i= ncludes 8 blocks from last but one difficulty)

If = ( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 > 50= % MaxBlockSize) AND (TotalTxFeeInLastDifficulty > TotalTxFeeInLastButOne= Difficulty) )
=C2=A0 =C2=A0 MaxBlockSize =3D TotalTxFeeInLastDiff= iculty * MaxBlockSize / TotalTxFeeInLastButOneDifficulty
Else If = ( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 < 50= % MaxBlockSize) AND (TotalTxFeeInLastDifficulty < TotalTxFeeInLastButOne= Difficulty) )
=C2=A0 =C2=A0 MaxBlockSize =3D TotalTxFeeInLastDiff= iculty * MaxBlockSize / TotalTxFeeInLastButOneDifficulty
Else
=C2=A0 =C2=A0 Keep the same MaxBlockSize

--001a113f3c7033d746051dd930c8--