script: lint.
This commit is contained in:
parent
5c7c66332f
commit
6c96a8e6ba
@ -2888,7 +2888,8 @@ Script.verifyProgram = function verifyProgram(witness, output, flags, tx, index,
|
||||
throw new ScriptError('WITNESS_PROGRAM_WRONG_LENGTH');
|
||||
}
|
||||
} else if ((flags & Script.flags.VERIFY_MAST) && program.version === 1) {
|
||||
return Script.verifyMast(program, stack, output, flags, tx, index);
|
||||
Script.verifyMast(program, stack, output, flags, tx, index);
|
||||
return;
|
||||
} else {
|
||||
// Anyone can spend (we can return true here
|
||||
// if we want to always relay these transactions).
|
||||
@ -2899,7 +2900,7 @@ Script.verifyProgram = function verifyProgram(witness, output, flags, tx, index,
|
||||
// due to VERIFY_CLEANSTACK.
|
||||
if (flags & Script.flags.VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM)
|
||||
throw new ScriptError('DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM');
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
// Witnesses still have push limits.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user