BIP 0100: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
Taras (talk | contribs)
Created page with "{{infobox BIP |name=BIP 0100 |longtitle=Making Decentralized Economic Policy |type=Standards Track |number=100 |author=Jeff Garzik |status=Draft |proposition=June 2015 }}'..."
 
934 (talk | contribs)
Update BIP text with latest version from https://github.com/bitcoin/bips/blob/b1b248fc6ade930c/bip-0100.mediawiki
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{infobox BIP
{{bip}}
|name=BIP 0100
{{BipMoved|bip-0100.mediawiki}}
|longtitle=Making Decentralized Economic Policy
|type=Standards Track
|number=100
|author=[[Jeff Garzik]]
|status=Draft
|proposition=June 2015
}}'''BIP 0100''' is a [[Bitcoin Improvement Proposal]] for increasing the maximum block size.


{{BIP begin}}
<pre>
O
  BIP: 100
n
  Layer: Consensus (hard fork)
b
  Title: Dynamic maximum block size by miner vote
a
  Author: Jeff Garzik <jgarzik@gmail.com>
l
          Tom Harding <tomh@thinlink.com>
a
          Dagur Valberg Johannsson <dagurval@pvv.ntnu.no>
n
  Comments-Summary: No comments yet.
c
  Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0100
e
  Status: Rejected
,
  Type: Standards Track
i
  Created: 2015-06-11
n
  License: BSD-2-Clause
c
</pre>
r
 
e
==Abstract==
a
 
s
Replace the static 1M block size hard limit with a hard limit set by coinbase vote, conducted on the same schedule as difficulty retargeting.
i
 
n
==Motivation==
g
 
b
Miners directly feel the effects, both positive and negative, of any maximum block size change imposed by their peers. Larger blocks allow more growth in the on-chain ecosystem, while smaller blocks reduce resource requirements network-wide.  Miners also act as an efficient proxy for the rest of the ecosystem, since they are paid in the tokens collected for the blocks they create.
l
 
o
A simple deterministic system is specified, whereby a 75% mining supermajority may activate a change to the maximum block size each 2016 blocks. Each change is limited to a 5% increase from the previous block size hard limit, or a decrease of similar magnitude. Among adopting nodes, there will be no disagreement on the evolution of the maximum block size.
c
 
k
The system is compatible with emergent consensus, but whereas under that system a miner may choose to accept any size block, a miner following BIP100 observes the 75% supermajority rule, and the 5% change limit rule. Excessive-block values signaled by emergent consensus blocks are considered in the calculation of the BIP100 block size hard limit, and the BIP100 calculated maximum block size is signaled as an excessive-block value for the benefit of all observers.
s
 
i
==Specification==
z
 
e
===Dynamic Maximum Block Size===
l
# Initial value of <code>hardLimit</code> is 1000000 bytes, preserving current system.
i
# Changing <code>hardLimit</code> is accomplished by encoding a proposed value, a vote, within a block's coinbase scriptSig, and by processing the votes contained in the previous retargeting period.<br /><br />
m
## Vote encoding
i
### A vote is represented as a megabyte value using the BIP100 pattern<br /><br /><code>/BIP100/B[0-9]+/</code><br /><br />Example: <code>/BIP100/B8/</code> is a vote for a 8000000-byte <code>hardLimit</code>.<br /><br />
t
### If the block height is encoded at the start of the coinbase scriptSig, as per BIP34, it is ignored.
a
### Only the first BIP100 pattern match is processed in "Maximum block size recalculation" below.
b
### A megabyte value is represented by consecutive base-ten digits.
o
### If no BIP100 pattern is matched, the first matching emergent consensus pattern <code>/EB[0-9]+/</code>, if any, is accepted as the megabyte vote.<br /><br />
v
## Maximum block size recalculation
e
### A <code>new hardLimit</code> is calculated after each difficulty adjustment period of 2016 blocks, and applies to the next 2016 blocks.
1
### Absent/zero-valued votes are counted as votes for the <code>current hardLimit</code>.
M
### The votes of the previous 2016 blocks are sorted by megabyte vote.
B
### Raising <code>hardLimit</code><br /><br />
i
#### The <code>raise value</code> is defined as the vote of the 1512th highest block, converted to bytes.
s
#### If the resultant <code>raise value</code> is greater than (<code>current hardLimit</code> * 1.05) rounded down, it is set to that value.
n
#### If the resultant <code>raise value</code> is greater than <code>current hardLimit</code>, the <code>raise value</code> becomes the <code>new hardLimit</code> and the recalculation is complete.<br /><br />
e
### Lowering <code>hardLimit</code><br /><br />
e
#### The <code>lower value</code> is defined as the vote of the 1512th lowest block, converted to bytes.
d
#### If the resultant <code>lower value</code> is less than (<code>current hardLimit</code> / 1.05) rounded down, it is set to that value.
e
#### If the resultant <code>lower value</code> is less than <code>current hardLimit</code>, the <code>lower value</code> becomes the <code>new hardLimit</code> and the recalculation is complete.<br /><br />
d
### Otherwise, <code>new hardLimit</code> remains the same as <code>current hardLimit</code>.
.
 
I
===Signature Hashing Operations Limits===
t
# The per-block signature hashing operations limit is scaled to (actual block size, fractional megabyte rounded to next higher megabyte) / 50.
i
# A maximum serialized transaction size of 1000000 bytes is imposed.
s
 
c
==Recommendations==
l
 
e
===Publication of <code>hardLimit</code>===
a
# For the benefit of all observers, it is recommended that <code>hardLimit</code> be published. Example: a complete coinbase string might read <br /><br /><code>/BIP100/B8/EB2.123456/</code><br /><br /> which indicates a vote for 8M maximum block size, and an enforced <code>hardLimit</code> of 2.123456 megabytes for the block containing the coinbase string.
r
 
t
==Deployment==
h
 
a
This BIP is presumed deployed and activated as of block height 449568 by implementing nodes on the bitcoin mainnet. It has no effect until a raise value different from 1M is observed, which requires at least 1512 of 2016 blocks to vote differently from 1M.
t
 
t
==Backward compatibility==
h
 
e
The first block larger than 1M will create a network partition, as nodes with a fixed 1M hard limit reject that block.
c
 
u
==Implementations==
r
https://github.com/bitcoinxt/bitcoinxt/pull/188</br>
r
https://github.com/bitcoinxt/bitcoin/pull/1</br>
e
https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/398</br>
n
 
t
==Copyright==
s
This document is licensed under the BSD 2-clause license.
p
e
e
d
l
i
m
i
t
,
1
,
0
0
0
,
0
0
0
b
y
t
e
s
,
i
s
t
o
o
l
o
w
a
n
d
w
i
l
l
r
e
t
a
r
d
g
r
o
w
t
h
a
n
d
l
e
a
d
t
o
u
s
e
r
p
a
i
n
a
n
d
e
x
p
e
n
s
e
i
f
n
o
t
i
n
c
r
e
a
s
e
d
.
W
h
a
t
i
s
u
n
c
l
e
a
r
a
n
d
u
n
d
e
r
r
e
s
e
a
r
c
h
e
d
i
s
t
h
e
o
p
p
o
s
i
t
e
s
i
d
e
o
f
t
h
e
e
q
u
a
t
i
o
n
:
H
o
w
m
u
c
h
i
s
t
o
o
m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
v
o
i
c
e
t
w
i
c
e
:
O
n
e
h
a
r
d
f
o
r
k
a
t
t
h
e
i
n
t
r
o
d
u
c
t
i
o
n
o
f
B
I
P
1
0
0
,
a
n
d
a
2
n
d
h
a
r
d
f
o
r
k
a
t
3
2
M
B
,
a
s
s
u
m
i
n
g
u
s
e
r
s
c
h
o
o
s
e
t
o
s
c
a
l
e
t
h
a
t
h
i
g
h
.
T
h
e
3
2
M
B
h
a
r
d
f
o
r
k
i
s
l
a
r
g
e
l
y
c
o
i
n
c
i
d
e
n
t
a
l
a
w
h
o
l
e
n
e
t
w
o
r
k
u
p
g
r
a
d
e
a
t
3
2
M
B
w
a
s
l
i
k
e
l
y
n
e
e
d
e
d
a
n
y
w
a
y
,
f
o
r
h
i
s
t
o
r
i
c
a
l
r
e
a
s
o
n
s
u
n
r
e
l
a
t
e
d
t
o
t
h
i
s
p
r
o
p
o
s
a
l
.
{{end}}
{{BIPs}}

Latest revision as of 19:59, 24 September 2019

This page describes a BIP (Bitcoin Improvement Proposal).
Please see BIP 2 for more information about BIPs and creating them. Please do not just create a wiki page.

Please do not modify this page. This is a mirror of the BIP from the source Git repository here.

  BIP: 100
  Layer: Consensus (hard fork)
  Title: Dynamic maximum block size by miner vote
  Author: Jeff Garzik <jgarzik@gmail.com>
          Tom Harding <tomh@thinlink.com>
          Dagur Valberg Johannsson <dagurval@pvv.ntnu.no>
  Comments-Summary: No comments yet.
  Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0100
  Status: Rejected
  Type: Standards Track
  Created: 2015-06-11
  License: BSD-2-Clause

Abstract

Replace the static 1M block size hard limit with a hard limit set by coinbase vote, conducted on the same schedule as difficulty retargeting.

Motivation

Miners directly feel the effects, both positive and negative, of any maximum block size change imposed by their peers. Larger blocks allow more growth in the on-chain ecosystem, while smaller blocks reduce resource requirements network-wide. Miners also act as an efficient proxy for the rest of the ecosystem, since they are paid in the tokens collected for the blocks they create.

A simple deterministic system is specified, whereby a 75% mining supermajority may activate a change to the maximum block size each 2016 blocks. Each change is limited to a 5% increase from the previous block size hard limit, or a decrease of similar magnitude. Among adopting nodes, there will be no disagreement on the evolution of the maximum block size.

The system is compatible with emergent consensus, but whereas under that system a miner may choose to accept any size block, a miner following BIP100 observes the 75% supermajority rule, and the 5% change limit rule. Excessive-block values signaled by emergent consensus blocks are considered in the calculation of the BIP100 block size hard limit, and the BIP100 calculated maximum block size is signaled as an excessive-block value for the benefit of all observers.

Specification

Dynamic Maximum Block Size

  1. Initial value of hardLimit is 1000000 bytes, preserving current system.
  2. Changing hardLimit is accomplished by encoding a proposed value, a vote, within a block's coinbase scriptSig, and by processing the votes contained in the previous retargeting period.

    1. Vote encoding
      1. A vote is represented as a megabyte value using the BIP100 pattern

        /BIP100/B[0-9]+/

        Example: /BIP100/B8/ is a vote for a 8000000-byte hardLimit.

      2. If the block height is encoded at the start of the coinbase scriptSig, as per BIP34, it is ignored.
      3. Only the first BIP100 pattern match is processed in "Maximum block size recalculation" below.
      4. A megabyte value is represented by consecutive base-ten digits.
      5. If no BIP100 pattern is matched, the first matching emergent consensus pattern /EB[0-9]+/, if any, is accepted as the megabyte vote.

    2. Maximum block size recalculation
      1. A new hardLimit is calculated after each difficulty adjustment period of 2016 blocks, and applies to the next 2016 blocks.
      2. Absent/zero-valued votes are counted as votes for the current hardLimit.
      3. The votes of the previous 2016 blocks are sorted by megabyte vote.
      4. Raising hardLimit

        1. The raise value is defined as the vote of the 1512th highest block, converted to bytes.
        2. If the resultant raise value is greater than (current hardLimit * 1.05) rounded down, it is set to that value.
        3. If the resultant raise value is greater than current hardLimit, the raise value becomes the new hardLimit and the recalculation is complete.

      5. Lowering hardLimit

        1. The lower value is defined as the vote of the 1512th lowest block, converted to bytes.
        2. If the resultant lower value is less than (current hardLimit / 1.05) rounded down, it is set to that value.
        3. If the resultant lower value is less than current hardLimit, the lower value becomes the new hardLimit and the recalculation is complete.

      6. Otherwise, new hardLimit remains the same as current hardLimit.

Signature Hashing Operations Limits

  1. The per-block signature hashing operations limit is scaled to (actual block size, fractional megabyte rounded to next higher megabyte) / 50.
  2. A maximum serialized transaction size of 1000000 bytes is imposed.

Recommendations

Publication of hardLimit

  1. For the benefit of all observers, it is recommended that hardLimit be published. Example: a complete coinbase string might read

    /BIP100/B8/EB2.123456/

    which indicates a vote for 8M maximum block size, and an enforced hardLimit of 2.123456 megabytes for the block containing the coinbase string.

Deployment

This BIP is presumed deployed and activated as of block height 449568 by implementing nodes on the bitcoin mainnet. It has no effect until a raise value different from 1M is observed, which requires at least 1512 of 2016 blocks to vote differently from 1M.

Backward compatibility

The first block larger than 1M will create a network partition, as nodes with a fixed 1M hard limit reject that block.

Implementations

https://github.com/bitcoinxt/bitcoinxt/pull/188
https://github.com/bitcoinxt/bitcoin/pull/1
https://github.com/BitcoinUnlimited/BitcoinUnlimited/pull/398

Copyright

This document is licensed under the BSD 2-clause license.