Skip to content

Commit

Permalink
Accept unknown witness versions for future softforks
Browse files Browse the repository at this point in the history
  • Loading branch information
afk11 committed Nov 8, 2019
1 parent e5a6125 commit 5e404b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Script/Interpreter/Interpreter.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ private function verifyWitnessProgram(WitnessProgram $witnessProgram, ScriptWitn
} elseif ($flags & self::VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM) {
return false;
} else {
return false;
// Unknown versions are always 'valid' to permit future soft forks
return true;
}

$mainStack = new Stack();
Expand Down

0 comments on commit 5e404b6

Please sign in to comment.