Remove more SegWit related tests from script_standard_tests.cpp
This commit is contained in:
parent
f76d53d730
commit
297e9a0185
@ -154,16 +154,6 @@ BOOST_AUTO_TEST_CASE(script_standard_Solver_failure)
|
||||
s.clear();
|
||||
s << OP_RETURN << std::vector<unsigned char>({75}) << OP_ADD;
|
||||
BOOST_CHECK(!Solver(s, whichType, solutions));
|
||||
|
||||
// TX_WITNESS with unknown version
|
||||
s.clear();
|
||||
s << OP_1 << ToByteVector(pubkey);
|
||||
BOOST_CHECK(!Solver(s, whichType, solutions));
|
||||
|
||||
// TX_WITNESS with incorrect program size
|
||||
s.clear();
|
||||
s << OP_0 << std::vector<unsigned char>(19, 0x01);
|
||||
BOOST_CHECK(!Solver(s, whichType, solutions));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(script_standard_ExtractDestination)
|
||||
@ -207,16 +197,6 @@ BOOST_AUTO_TEST_CASE(script_standard_ExtractDestination)
|
||||
s.clear();
|
||||
s << OP_RETURN << std::vector<unsigned char>({75});
|
||||
BOOST_CHECK(!ExtractDestination(s, address));
|
||||
|
||||
// TX_WITNESS_V0_KEYHASH
|
||||
s.clear();
|
||||
s << OP_0 << ToByteVector(pubkey);
|
||||
BOOST_CHECK(!ExtractDestination(s, address));
|
||||
|
||||
// TX_WITNESS_V0_SCRIPTHASH
|
||||
s.clear();
|
||||
s << OP_0 << ToByteVector(CScriptID(redeemScript));
|
||||
BOOST_CHECK(!ExtractDestination(s, address));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(script_standard_ExtractDestinations)
|
||||
@ -283,16 +263,6 @@ BOOST_AUTO_TEST_CASE(script_standard_ExtractDestinations)
|
||||
s.clear();
|
||||
s << OP_RETURN << std::vector<unsigned char>({75});
|
||||
BOOST_CHECK(!ExtractDestinations(s, whichType, addresses, nRequired));
|
||||
|
||||
// TX_WITNESS_V0_KEYHASH
|
||||
s.clear();
|
||||
s << OP_0 << ToByteVector(pubkeys[0].GetID());
|
||||
BOOST_CHECK(!ExtractDestinations(s, whichType, addresses, nRequired));
|
||||
|
||||
// TX_WITNESS_V0_SCRIPTHASH
|
||||
s.clear();
|
||||
s << OP_0 << ToByteVector(CScriptID(redeemScript));
|
||||
BOOST_CHECK(!ExtractDestinations(s, whichType, addresses, nRequired));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(script_standard_GetScriptFor_)
|
||||
|
Loading…
Reference in New Issue
Block a user