1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-02-23 15:38:22 +00:00

BIP 141 & 145: Clarify sigop interaction

This commit is contained in:
Luke Dashjr
2016-03-30 21:43:36 +00:00
parent ba16f16742
commit a5447e0c4b
2 changed files with 8 additions and 4 deletions

View File

@@ -114,9 +114,11 @@ The new rule is total ''block cost'' ≤ 4,000,000.
Sigops per block is currently limited to 20,000. We change this restriction as follows:
''Sigop cost'' is defined. The cost of a sigop in traditional script is 4, while the cost of a sigop in witness program is 1.
Sigops in the current pubkey script, signature script, and P2SH check script are counted at 4 times their previous value.
The sigop limit is likewise quadrupled to ≤ 80,000.
The new rule is total ''sigop cost'' ≤ 80,000.
In addition, opcodes within the witness program are counted identical to as previously within the P2SH check script.
That is, CHECKSIG is counted as only 1 sigop in a witness program, despite P2SH check script's CHECKSIG becoming 4 sigops with the forementioned change.
== Examples ==