summaryrefslogtreecommitdiff
path: root/03/4b890b2b37417b63b14683a1b42a78ddc166fe
blob: 8179c11a708c5c78b6fe8fd65951a0822dc7d3a3 (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
Return-Path: <bitcoin@upalc.com>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id D917F847
	for <bitcoin-dev@lists.linuxfoundation.org>;
	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 <bitcoin-dev@lists.linuxfoundation.org>;
	Fri, 21 Aug 2015 21:45:38 +0000 (UTC)
Received: by iodb91 with SMTP id b91so95644442iod.1
	for <bitcoin-dev@lists.linuxfoundation.org>;
	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: <CAED3CWgSBP17Lczpb1TOtGD--v9x2BCU08=7j036qyfWUf-TSw@mail.gmail.com>
From: Upal Chakraborty <bitcoin@upalc.com>
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 <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, 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

<div dir=3D"ltr"><div>I have tried to solve the maximum block size debate i=
n two different proposal.</div><div><br></div><div>i. Depending only on pre=
vious block size calculation.</div><div><br></div><div>ii. Depending on pre=
vious block size calculation and previous Tx fee collected by miners.</div>=
<div><br></div><div><br></div><div>Proposal 1: Depending only on previous b=
lock size calculation</div><div><br></div><div>If more than 50% of block&#3=
9;s size, found in the first 2000 of the last difficulty period, is more th=
an 90% MaxBlockSize</div><div>=C2=A0 =C2=A0 Double MaxBlockSize</div><div>E=
lse if more than 90% of block&#39;s size, found in the first 2000 of the la=
st difficulty period, is less than 50% MaxBlockSize</div><div>=C2=A0 =C2=A0=
 Half MaxBlockSize</div><div>Else</div><div>=C2=A0 =C2=A0 Keep the same Max=
BlockSize</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
">	</span></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pr=
e">	</span></div><div>Proposal 2: Depending on previous block size calculat=
ion and previous Tx fee collected by miners</div><div><br></div><div>TotalT=
xFeeInLastButOneDifficulty =3D Sum of all Tx fees of first 2008 blocks in l=
ast 2 difficulty period</div><div>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)</div><div><br></div><div>If =
( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 &gt; 50=
% MaxBlockSize) AND (TotalTxFeeInLastDifficulty &gt; TotalTxFeeInLastButOne=
Difficulty) )</div><div>=C2=A0 =C2=A0 MaxBlockSize =3D TotalTxFeeInLastDiff=
iculty * MaxBlockSize / TotalTxFeeInLastButOneDifficulty</div><div>Else If =
( ( (Sum of first 4016 block size in last 2 difficulty period)/4016 &lt; 50=
% MaxBlockSize) AND (TotalTxFeeInLastDifficulty &lt; TotalTxFeeInLastButOne=
Difficulty) )</div><div>=C2=A0 =C2=A0 MaxBlockSize =3D TotalTxFeeInLastDiff=
iculty * MaxBlockSize / TotalTxFeeInLastButOneDifficulty</div><div>Else</di=
v><div>=C2=A0 =C2=A0 Keep the same MaxBlockSize</div><div><span class=3D"Ap=
ple-tab-span" style=3D"white-space:pre">	</span></div><div><span class=3D"A=
pple-tab-span" style=3D"white-space:pre">	</span></div><div>Details: <a hre=
f=3D"http://upalc.com/maxblocksize.php">http://upalc.com/maxblocksize.php</=
a></div><div><br></div><div>Requesting for comment.</div></div>

--001a113f3c7033d746051dd930c8--