File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ struct TestData {
40
40
41
41
TestData ()
42
42
{
43
+ static ECC_Context ctx;
43
44
// All our signatures sign (and are required to sign) this constant message.
44
45
auto const MESSAGE_HASH = uint256S (" f5cd94e18b6fe77dd7aca9e35c2b0c9cbd86356c80a71065" );
45
46
// We don't pass additional randomness when creating a schnorr signature.
@@ -94,7 +95,7 @@ struct TestData {
94
95
};
95
96
96
97
// ! Global TestData object
97
- std::unique_ptr<const TestData> g_testdata;
98
+ std::unique_ptr<const TestData> g_testdata ( new TestData()) ;
98
99
99
100
struct KeyConverter {
100
101
typedef CPubKey Key;
@@ -185,7 +186,6 @@ bool BitcoinCoreString(const std::string& input_str)
185
186
186
187
void MiniscriptFromString (FuzzedDataProvider& provider)
187
188
{
188
- g_testdata.reset ();
189
189
std::string input_str{provider.ConsumeRemainingBytesAsString ().c_str ()};
190
190
const bool core{BitcoinCoreString (input_str)};
191
191
const std::string rust_miniscript{rust_miniscript_from_str_check_key (input_str.c_str ())};
You can’t perform that action at this time.
0 commit comments