File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,22 @@ BOOST_AUTO_TEST_CASE(script_standard_Solver_success)
107
107
BOOST_CHECK_EQUAL (solutions.size (), 1U );
108
108
BOOST_CHECK (solutions[0 ] == ToByteVector (scriptHash));
109
109
110
+ // TxoutType::WITNESS_V1_TAPROOT
111
+ s.clear ();
112
+ s << OP_1 << ToByteVector (uint256::ZERO);
113
+ BOOST_CHECK_EQUAL (Solver (s, solutions), TxoutType::WITNESS_V1_TAPROOT);
114
+ BOOST_CHECK_EQUAL (solutions.size (), 2U );
115
+ BOOST_CHECK (solutions[0 ] == std::vector<unsigned char >{1 });
116
+ BOOST_CHECK (solutions[1 ] == ToByteVector (uint256::ZERO));
117
+
118
+ // TxoutType::WITNESS_UNKNOWN
119
+ s.clear ();
120
+ s << OP_16 << ToByteVector (uint256::ONE);
121
+ BOOST_CHECK_EQUAL (Solver (s, solutions), TxoutType::WITNESS_UNKNOWN);
122
+ BOOST_CHECK_EQUAL (solutions.size (), 2U );
123
+ BOOST_CHECK (solutions[0 ] == std::vector<unsigned char >{16 });
124
+ BOOST_CHECK (solutions[1 ] == ToByteVector (uint256::ONE));
125
+
110
126
// TxoutType::NONSTANDARD
111
127
s.clear ();
112
128
s << OP_9 << OP_ADD << OP_11 << OP_EQUAL;
You can’t perform that action at this time.
0 commit comments