aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/hex.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2022-12-12 23:44:53 -0500
committerPieter Wuille <pieter@wuille.net>2022-12-13 15:08:24 -0500
commit4462cb04986d77eddcfc6e8f75e04dc278a8147a (patch)
treeb734303912ceb551182d106edc1b713a055ba4c1 /src/test/fuzz/hex.cpp
parent3d8a6ae28326ed10b6ca1c2807ceb400575f2ba7 (diff)
downloadbitcoin-4462cb04986d77eddcfc6e8f75e04dc278a8147a.tar.xz
Adapt to libsecp256k1 API changes
* Use SECP256K1_CONTEXT_NONE when creating signing context, as SECP256K1_CONTEXT_SIGN is deprecated and unnecessary. * Use secp256k1_static_context where applicable.
Diffstat (limited to 'src/test/fuzz/hex.cpp')
-rw-r--r--src/test/fuzz/hex.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/test/fuzz/hex.cpp b/src/test/fuzz/hex.cpp
index e637975b48..99ce4da764 100644
--- a/src/test/fuzz/hex.cpp
+++ b/src/test/fuzz/hex.cpp
@@ -16,12 +16,7 @@
#include <string>
#include <vector>
-void initialize_hex()
-{
- static const ECCVerifyHandle verify_handle;
-}
-
-FUZZ_TARGET_INIT(hex, initialize_hex)
+FUZZ_TARGET(hex)
{
const std::string random_hex_string(buffer.begin(), buffer.end());
const std::vector<unsigned char> data = ParseHex(random_hex_string);