diff options
author | Luke Dashjr <luke_github1@dashjr.org> | 2021-02-03 22:27:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 22:27:44 +0000 |
commit | bc50a299a603f7056d680ad6d5b1b704c533472d (patch) | |
tree | 40a3a9b41bdc3efa6e95d378e719a058f2bcc3b8 | |
parent | ee523cd9a9bba0256ffa5ed268f7ae2484735ab6 (diff) | |
parent | 644610f7b87e3e5f4757fb9e80d24f8e6e75d93e (diff) |
Merge pull request #1054 from darosior/bip141_multisig_sigops
bip-0141: clarify the sigop count calculation for CHECKMULTISIG
-rw-r--r-- | bip-0141.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0141.mediawiki b/bip-0141.mediawiki index 82f6abd..8528729 100644 --- a/bip-0141.mediawiki +++ b/bip-0141.mediawiki @@ -127,7 +127,7 @@ Sigops per block is currently limited to 20,000. We change this restriction as f 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. -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. +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. === Additional definitions === |