aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/util.h
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2022-11-15 11:18:03 +0000
committerdergoegge <n.goeggi@gmail.com>2022-11-17 14:52:45 +0000
commit0eeb9b0442fb2f2da33c04704eefe6a84d28e981 (patch)
tree52123c0bd868973f26ee18a640a9a30aa851c090 /src/test/fuzz/util.h
parent291c8697d4be0f38635b67880107e39d3ec585ad (diff)
[fuzz] Move ConsumeNetAddr to fuzz/util/net.h
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r--src/test/fuzz/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h
index dfe4855326..ecd6eead3f 100644
--- a/src/test/fuzz/util.h
+++ b/src/test/fuzz/util.h
@@ -22,6 +22,7 @@
#include <streams.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
+#include <test/fuzz/util/net.h>
#include <test/util/net.h>
#include <uint256.h>
#include <version.h>
@@ -283,8 +284,6 @@ inline void SetFuzzedErrNo(FuzzedDataProvider& fuzzed_data_provider) noexcept
return result;
}
-CNetAddr ConsumeNetAddr(FuzzedDataProvider& fuzzed_data_provider) noexcept;
-
inline CSubNet ConsumeSubNet(FuzzedDataProvider& fuzzed_data_provider) noexcept
{
return {ConsumeNetAddr(fuzzed_data_provider), fuzzed_data_provider.ConsumeIntegral<uint8_t>()};