diff options
author | jl2012 <jl2012@xbt.hk> | 2016-04-23 16:25:53 +0200 |
---|---|---|
committer | jl2012 <jl2012@xbt.hk> | 2016-04-23 16:25:53 +0200 |
commit | f245646f8b53ee9a82f8053c0ea06048e4fd0278 (patch) | |
tree | 400f84c3400742315ec14ea26783d78d1300d57c /bip-0141.mediawiki | |
parent | 43c34e846be227780a954905de7543654a1e840c (diff) |
BIP141: Block cost clrification
Diffstat (limited to 'bip-0141.mediawiki')
-rw-r--r-- | bip-0141.mediawiki | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bip-0141.mediawiki b/bip-0141.mediawiki index a760d7d..09676f8 100644 --- a/bip-0141.mediawiki +++ b/bip-0141.mediawiki @@ -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 ==== |