Skip to content

Commit f245646

Browse files
committed
BIP141: Block cost clrification
1 parent 43c34e8 commit f245646

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bip-0141.mediawiki

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,13 @@ If the version byte is 1 to 16, no further interpretation of the witness program
108108

109109
Blocks are currently limited to 1,000,000 bytes (1MB) total size. We change this restriction as follows:
110110

111-
''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.
111+
''Block cost'' is defined as ''Base size'' * 3 + ''Total size''.
112112

113-
The new rule is total ''block cost'' ≤ 4,000,000.
113+
''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.
114+
115+
''Total size'' is the block size in bytes with transactions serialized as described in [[bip-0144.mediawiki|BIP144]], including base data and witness data.
116+
117+
The new rule is ''block cost'' ≤ 4,000,000.
114118

115119
==== Sigops ====
116120

0 commit comments

Comments
 (0)