minor.
This commit is contained in:
parent
5008a5880c
commit
8cfa46f943
@ -1700,24 +1700,24 @@ Script.prototype.execute = function execute(stack, flags, tx, index, version) {
|
||||
stack.push(utils.sha256(stack.pop()));
|
||||
break;
|
||||
}
|
||||
case opcodes.OP_HASH256: {
|
||||
if (stack.length === 0)
|
||||
throw new ScriptError('INVALID_STACK_OPERATION', op, ip);
|
||||
stack.push(utils.dsha256(stack.pop()));
|
||||
break;
|
||||
}
|
||||
case opcodes.OP_HASH160: {
|
||||
if (stack.length === 0)
|
||||
throw new ScriptError('INVALID_STACK_OPERATION', op, ip);
|
||||
stack.push(utils.ripesha(stack.pop()));
|
||||
break;
|
||||
}
|
||||
case opcodes.OP_HASH256: {
|
||||
if (stack.length === 0)
|
||||
throw new ScriptError('INVALID_STACK_OPERATION', op, ip);
|
||||
stack.push(utils.dsha256(stack.pop()));
|
||||
break;
|
||||
}
|
||||
case opcodes.OP_CODESEPARATOR: {
|
||||
lastSep = ip;
|
||||
break;
|
||||
}
|
||||
case opcodes.OP_CHECKSIGVERIFY:
|
||||
case opcodes.OP_CHECKSIG: {
|
||||
case opcodes.OP_CHECKSIG:
|
||||
case opcodes.OP_CHECKSIGVERIFY: {
|
||||
if (!tx)
|
||||
throw new ScriptError('UNKNOWN_ERROR', 'No TX passed in.');
|
||||
|
||||
@ -1748,8 +1748,8 @@ Script.prototype.execute = function execute(stack, flags, tx, index, version) {
|
||||
|
||||
break;
|
||||
}
|
||||
case opcodes.OP_CHECKMULTISIGVERIFY:
|
||||
case opcodes.OP_CHECKMULTISIG: {
|
||||
case opcodes.OP_CHECKMULTISIG:
|
||||
case opcodes.OP_CHECKMULTISIGVERIFY: {
|
||||
if (!tx)
|
||||
throw new ScriptError('UNKNOWN_ERROR', 'No TX passed in.');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user