1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-01-18 21:35:13 +01:00

BIP141: Block cost clrification

This commit is contained in:
jl2012 2016-04-23 16:25:53 +02:00
parent 43c34e846b
commit f245646f8b

View File

@ -108,9 +108,13 @@ If the version byte is 1 to 16, no further interpretation of the witness program
Blocks are currently limited to 1,000,000 bytes (1MB) total size. We change this restriction as follows:
''Block cost'' is defined. The cost of each byte in the existing header and transactions is 4, while the cost of each byte in witness data is 1.
''Block cost'' is defined as ''Base size'' * 3 + ''Total size''.
The new rule is total ''block cost'' ≤ 4,000,000.
''Base size'' is the block size in bytes with the original transaction serialization without any witness-related data, as seen by a non-upgraded node.
''Total size'' is the block size in bytes with transactions serialized as described in [[bip-0144.mediawiki|BIP144]], including base data and witness data.
The new rule is ''block cost'' ≤ 4,000,000.
==== Sigops ====