From 181280bed71acbee34ea5c83671b240ed28545dd Mon Sep 17 00:00:00 2001 From: Eric Lombrozo Date: Tue, 22 Dec 2015 21:52:55 -0500 Subject: [PATCH] Added block size limit --- bip-codeshark-jl2012-segwit.mediawiki | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bip-codeshark-jl2012-segwit.mediawiki b/bip-codeshark-jl2012-segwit.mediawiki index f44c6f1e..61f341e7 100644 --- a/bip-codeshark-jl2012-segwit.mediawiki +++ b/bip-codeshark-jl2012-segwit.mediawiki @@ -123,8 +123,11 @@ The first levels bits of locator, interpreted in little endian, are assumed to b The coinbase's input's witness must consist of a single byte array, which the size must be a multiple of 32 bytes but not bigger than 32*32 bytes. These are assumed to be the Merkle path to connect the witness root hash to the commitment root hash. Depth of the commitment is determined by the length of the path. If the depth of the tree is 0, the path should be represented by 0x00, and the witness root hash will be same as the commitment root hash. === Block size limit === -Discount for witness data? -Virtual block size limit? +Blocks are currently limited to 1 MB total size. We change this restriction as follows: + +We define a base block size sb consisting of the existing header and transactions, a witness size sw consisting of only the size of the witness data, and a virtual block size sv = sb + sw/4. + +The new rule is sv <= 1 MB. === Witness program ===