Skip to content

Commit 297e9a0

Browse files
committed
Remove more SegWit related tests from script_standard_tests.cpp
1 parent f76d53d commit 297e9a0

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/test/script_standard_tests.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,6 @@ BOOST_AUTO_TEST_CASE(script_standard_Solver_failure)
154154
s.clear();
155155
s << OP_RETURN << std::vector<unsigned char>({75}) << OP_ADD;
156156
BOOST_CHECK(!Solver(s, whichType, solutions));
157-
158-
// TX_WITNESS with unknown version
159-
s.clear();
160-
s << OP_1 << ToByteVector(pubkey);
161-
BOOST_CHECK(!Solver(s, whichType, solutions));
162-
163-
// TX_WITNESS with incorrect program size
164-
s.clear();
165-
s << OP_0 << std::vector<unsigned char>(19, 0x01);
166-
BOOST_CHECK(!Solver(s, whichType, solutions));
167157
}
168158

169159
BOOST_AUTO_TEST_CASE(script_standard_ExtractDestination)
@@ -207,16 +197,6 @@ BOOST_AUTO_TEST_CASE(script_standard_ExtractDestination)
207197
s.clear();
208198
s << OP_RETURN << std::vector<unsigned char>({75});
209199
BOOST_CHECK(!ExtractDestination(s, address));
210-
211-
// TX_WITNESS_V0_KEYHASH
212-
s.clear();
213-
s << OP_0 << ToByteVector(pubkey);
214-
BOOST_CHECK(!ExtractDestination(s, address));
215-
216-
// TX_WITNESS_V0_SCRIPTHASH
217-
s.clear();
218-
s << OP_0 << ToByteVector(CScriptID(redeemScript));
219-
BOOST_CHECK(!ExtractDestination(s, address));
220200
}
221201

222202
BOOST_AUTO_TEST_CASE(script_standard_ExtractDestinations)
@@ -283,16 +263,6 @@ BOOST_AUTO_TEST_CASE(script_standard_ExtractDestinations)
283263
s.clear();
284264
s << OP_RETURN << std::vector<unsigned char>({75});
285265
BOOST_CHECK(!ExtractDestinations(s, whichType, addresses, nRequired));
286-
287-
// TX_WITNESS_V0_KEYHASH
288-
s.clear();
289-
s << OP_0 << ToByteVector(pubkeys[0].GetID());
290-
BOOST_CHECK(!ExtractDestinations(s, whichType, addresses, nRequired));
291-
292-
// TX_WITNESS_V0_SCRIPTHASH
293-
s.clear();
294-
s << OP_0 << ToByteVector(CScriptID(redeemScript));
295-
BOOST_CHECK(!ExtractDestinations(s, whichType, addresses, nRequired));
296266
}
297267

298268
BOOST_AUTO_TEST_CASE(script_standard_GetScriptFor_)

0 commit comments

Comments
 (0)