aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/headerssync.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-07-17 13:18:27 +0100
committerfanquake <fanquake@gmail.com>2023-07-17 13:36:53 +0100
commitbf03fed2c70dbb9e526ce2e423b4c1dcb32e0e58 (patch)
tree6e39f637379ade3ba39a10b88173cf1275565c50 /src/test/fuzz/headerssync.cpp
parent275b3e47ccb5c58a969f562e1f51c575d4513a27 (diff)
parentfa6dfaaf45bde465969fa7d8fa6b6574a497a6ca (diff)
Merge bitcoin/bitcoin#28065: fuzz: Flatten all FUZZ_TARGET macros into one
fa6dfaaf45bde465969fa7d8fa6b6574a497a6ca scripted-diff: Use new FUZZ_TARGET macro everywhere (MarcoFalke) fa36ad8b091c70190491280dcf0794e94e34a9ed fuzz: Accept options in FUZZ_TARGET macro (MarcoFalke) Pull request description: The `FUZZ_TARGET` macros have many issues: * The developer will have to pick the right macro to pass the wanted option. * Adding a new option requires doubling the number of existing macros in the worst case. Fix all issues by using only a single macro. This refactor does not change behavior. ACKs for top commit: dergoegge: ACK fa6dfaaf45bde465969fa7d8fa6b6574a497a6ca Tree-SHA512: 49a34553867a1734ce89e616b2d7c29b784a67cd8990db6573f0c7b18957636ef0c81d3d0d444a04c12cdc98bc4c4aa7a2ec94e6232dc363620a746e28416444
Diffstat (limited to 'src/test/fuzz/headerssync.cpp')
-rw-r--r--src/test/fuzz/headerssync.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/headerssync.cpp b/src/test/fuzz/headerssync.cpp
index c1a187038b..62f6bbaffe 100644
--- a/src/test/fuzz/headerssync.cpp
+++ b/src/test/fuzz/headerssync.cpp
@@ -46,7 +46,7 @@ public:
}
};
-FUZZ_TARGET_INIT(headers_sync_state, initialize_headers_sync_state_fuzz)
+FUZZ_TARGET(headers_sync_state, .init = initialize_headers_sync_state_fuzz)
{
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
auto mock_time{ConsumeTime(fuzzed_data_provider)};