196 | @@ -197,14 +197,18 @@ BOOST_AUTO_TEST_CASE(script_standard_Solver_failure)
197 | s << OP_RETURN << std::vector<unsigned char>({75}) << OP_ADD;
198 | BOOST_CHECK_EQUAL(Solver(s, solutions), TxoutType::NONSTANDARD);
199 |
200 | - // TxoutType::WITNESS_UNKNOWN with incorrect program size
201 | + // TxoutType::WITNESS_V0_{KEY,SCRIPT}HASH with incorrect program size (-> consensus-invalid, i.e. non-standard)
202 | s.clear();
203 | s << OP_0 << std::vector<unsigned char>(19, 0x01);
204 | BOOST_CHECK_EQUAL(Solver(s, solutions), TxoutType::NONSTANDARD);
205 | + // TxoutType::WITNESS_V1_TAPROOT with incorrect program size (-> undefined, but still policy-valid)
Probably overkill, but could add a test for undersized v1 SPK s << OP_1 << std::vector<unsigned char>(31, 0x01); as well.
pico nit: If updating the file again, could add a blank line before this comment to be consistent with other checks in the test.