mirror of
https://github.com/bitcoin/bips.git
synced 2025-02-24 23:38:54 +01:00
Merge pull request #194 from btcdrak/patch-2
BIP105: Update to account for BIP34
This commit is contained in:
commit
4884b4377a
1 changed files with 9 additions and 3 deletions
|
@ -62,10 +62,12 @@ Each time a miner creates a block, they may vote to increase or decrease the
|
||||||
blocksize by a maximum of 10% of the current block size limit. These votes will
|
blocksize by a maximum of 10% of the current block size limit. These votes will
|
||||||
be used to recalculate the new block size limit every 2016 blocks.
|
be used to recalculate the new block size limit every 2016 blocks.
|
||||||
|
|
||||||
Votes are cast using the block's coinbase field.
|
Votes are cast using the block's coinbase transaction scriptSig.
|
||||||
|
|
||||||
The first 4 bytes of the coinbase field shall be repurposed for voting as an
|
As per BIP34, the coinbase transaction scriptSig starts with a push of the block
|
||||||
unsigned long integer which will be the block size in bytes.
|
height. The next push is a little-endian number representing the preferred block
|
||||||
|
size in bytes. For example, 0x4c(OP_PUSHDATA1) 0x03(size of constant) 0x80 0x84 0x1e(2MB)
|
||||||
|
or 0x4c(OP_PUSHDATA1) 0x04(size of constant) 0x80 0x96 0x98 0x00(10MB).
|
||||||
|
|
||||||
If a miner votes for an increase, the block hash must meet a difficulty target
|
If a miner votes for an increase, the block hash must meet a difficulty target
|
||||||
which is proportionally larger than the standard difficulty target based on the
|
which is proportionally larger than the standard difficulty target based on the
|
||||||
|
@ -95,6 +97,10 @@ This proposal is based on ideas and concepts derived from the writings of
|
||||||
Meni Rosenfeld and Gregory Maxwell.
|
Meni Rosenfeld and Gregory Maxwell.
|
||||||
|
|
||||||
|
|
||||||
|
==References==
|
||||||
|
|
||||||
|
[[bip-0034.mediawiki|BIP34]]
|
||||||
|
|
||||||
==Copyright==
|
==Copyright==
|
||||||
|
|
||||||
This work is placed in the public domain.
|
This work is placed in the public domain.
|
||||||
|
|
Loading…
Add table
Reference in a new issue