From 6c96a8e6ba228e4c51043bcc715fc89c81ade683 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 10 Aug 2017 23:37:42 -0700 Subject: [PATCH] script: lint. --- lib/script/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/script/script.js b/lib/script/script.js index b08e8f45..e00d09ba 100644 --- a/lib/script/script.js +++ b/lib/script/script.js @@ -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.