summaryrefslogtreecommitdiff
path: root/bip-0105.mediawiki
diff options
context:
space:
mode:
author฿tcDrak <btcdrak@users.noreply.github.com>2015-09-05 22:48:52 +0100
committerBtcDrak <btcdrak@gmail.com>2015-09-06 23:19:18 +0100
commitf749070a23b62fd603c1341c36142b7d1c7f0f94 (patch)
tree45526577beb50bf2b83bc16d8133587984b0e2d5 /bip-0105.mediawiki
parenta0837d35c65b4165f472a7e7af70b4f98722e50c (diff)
Update to account for BIP34
Diffstat (limited to 'bip-0105.mediawiki')
-rw-r--r--bip-0105.mediawiki12
1 files changed, 9 insertions, 3 deletions
diff --git a/bip-0105.mediawiki b/bip-0105.mediawiki
index 7aaef04..cbd309d 100644
--- a/bip-0105.mediawiki
+++ b/bip-0105.mediawiki
@@ -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
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
-unsigned long integer which will be the block size in bytes.
+As per BIP34, the coinbase transaction scriptSig starts with a push of the block
+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
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.
+==References==
+
+[[bip-0034.mediawiki|BIP34]]
+
==Copyright==
This work is placed in the public domain.