The following change does not make any unit test fail:
0diff --git i/src/script/interpreter.cpp w/src/script/interpreter.cpp
1index a35306b693..d9c119ae77 100644
2--- i/src/script/interpreter.cpp
3+++ w/src/script/interpreter.cpp
4@@ -1484,7 +1484,7 @@ bool SignatureHashSchnorr(uint256& hash_out, ScriptExecutionData& execdata, cons
5 // key_version is not used and left uninitialized.
6 break;
7 case SigVersion::TAPSCRIPT:
8- ext_flag = 1;
9+ ext_flag = 42;
10 // key_version must be 0 for now, representing the current version of
11 // 32-byte public keys in the tapscript signature opcode execution.
12 // An upgradable public key version (with a size not 32-byte) may
This is because, despite BIP342 claiming that “The Taproot (BIP341) test vectors also contain examples for Tapscript execution.”, it does not seem to be the case.
A similar change to SigVersion::TAPROOT
branch causes test failures in script_tests/bip341_keypath_test_vectors
as expected. Functional tests fail as expected in any case.