script: nullfail - minor.
This commit is contained in:
parent
ba8a1272bf
commit
b36491dd53
@ -986,14 +986,14 @@ Script.prototype.execute = function execute(stack, flags, tx, index, version) {
|
|||||||
res = Script.checksig(hash, sig, key, flags);
|
res = Script.checksig(hash, sig, key, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
stack.pop();
|
|
||||||
stack.pop();
|
|
||||||
|
|
||||||
if (!res && (flags & constants.flags.VERIFY_NULLFAIL)) {
|
if (!res && (flags & constants.flags.VERIFY_NULLFAIL)) {
|
||||||
if (sig.length !== 0)
|
if (sig.length !== 0)
|
||||||
throw new ScriptError('NULLFAIL', op, ip);
|
throw new ScriptError('NULLFAIL', op, ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stack.pop();
|
||||||
|
stack.pop();
|
||||||
|
|
||||||
stack.push(res ? STACK_TRUE : STACK_FALSE);
|
stack.push(res ? STACK_TRUE : STACK_FALSE);
|
||||||
|
|
||||||
if (op === opcodes.OP_CHECKSIGVERIFY) {
|
if (op === opcodes.OP_CHECKSIGVERIFY) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user