Skip to content

Commit a6c6702

Browse files
committed
Count CHECKSIGFROMSTACK* against sigops limit
1 parent 565e1e6 commit a6c6702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/script/script.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ unsigned int CScript::GetSigOpCount(bool fAccurate) const
175175
opcodetype opcode;
176176
if (!GetOp(pc, opcode))
177177
break;
178-
if (opcode == OP_CHECKSIG || opcode == OP_CHECKSIGVERIFY)
178+
if (opcode == OP_CHECKSIG || opcode == OP_CHECKSIGVERIFY ||
179+
opcode == OP_CHECKSIGFROMSTACK || opcode == OP_CHECKSIGFROMSTACKVERIFY)
179180
n++;
180181
else if (opcode == OP_CHECKMULTISIG || opcode == OP_CHECKMULTISIGVERIFY)
181182
{

0 commit comments

Comments
 (0)