mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Count CHECKSIGFROMSTACK* against sigops limit
This commit is contained in:
parent
b11aff66cd
commit
d4d6abbf6d
1 changed files with 2 additions and 1 deletions
|
|
@ -175,7 +175,8 @@ unsigned int CScript::GetSigOpCount(bool fAccurate) const
|
|||
opcodetype opcode;
|
||||
if (!GetOp(pc, opcode))
|
||||
break;
|
||||
if (opcode == OP_CHECKSIG || opcode == OP_CHECKSIGVERIFY)
|
||||
if (opcode == OP_CHECKSIG || opcode == OP_CHECKSIGVERIFY ||
|
||||
opcode == OP_CHECKSIGFROMSTACK || opcode == OP_CHECKSIGFROMSTACKVERIFY)
|
||||
n++;
|
||||
else if (opcode == OP_CHECKMULTISIG || opcode == OP_CHECKMULTISIGVERIFY)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue