Skip to content

Commit bc50a29

Browse files
authored
Merge pull request bitcoin#1054 from darosior/bip141_multisig_sigops
bip-0141: clarify the sigop count calculation for CHECKMULTISIG
2 parents ee523cd + 644610f commit bc50a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0141.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Sigops per block is currently limited to 20,000. We change this restriction as f
127127
Sigops in the current pubkey script, signature script, and P2SH check script are counted at 4 times their previous value.
128128
The sigop limit is likewise quadrupled to ≤ 80,000.
129129

130-
Each P2WPKH input is counted as 1 sigop. In addition, opcodes within a P2WSH <code>witnessScript</code> are counted identically as previously within the P2SH <code>redeemScript</code>. That is, CHECKSIG is counted as only 1 sigop, and CHECKMULTISIG is counted as 1 to 20 sigops according to the arguments. This rule applies to both native witness program and P2SH witness program.
130+
Each P2WPKH input is counted as 1 sigop. In addition, opcodes within a P2WSH <code>witnessScript</code> are counted identically as previously within the P2SH <code>redeemScript</code>. That is, CHECKSIG is counted as only 1 sigop. When preceded by OP_1 to OP_16 CHECKMULTISIG is counted as 1 to 16 sigops respectively, otherwise it is counted as 20 sigops. This rule applies to both native witness program and P2SH witness program.
131131

132132
=== Additional definitions ===
133133

0 commit comments

Comments
 (0)