aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAva Chow <github@achow101.com>2024-01-10 14:13:42 -0500
committerAva Chow <github@achow101.com>2024-01-10 14:20:57 -0500
commit507dbe4ca26f08ab89bc5047789c6b9bd7f7e1af (patch)
tree464fcfd78b0264d141f08a0df8936e02af2cd2cb /src/test
parent7ff8e6b24054bd55adbba54e37f87672f4cf544c (diff)
parente84dc36733687fffe08ae4621b571cc66afc047d (diff)
Merge bitcoin/bitcoin#29211: fuzz: fix `connman` initialization
e84dc36733687fffe08ae4621b571cc66afc047d fuzz: fix `connman` initialization (brunoerg) Pull request description: Fixes https://github.com/bitcoin/bitcoin/pull/29172#issuecomment-1883547121 ACKs for top commit: achow101: ACK e84dc36733687fffe08ae4621b571cc66afc047d Tree-SHA512: e5f3c378cfe367cc4c387fa1b13663a74d8b667a5d130d62919e21455861cfb9383b63ef4ebe56daab7b2c09e3b5031acc463065455f71607c5fb9e3c370d3ad
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/connman.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/fuzz/connman.cpp b/src/test/fuzz/connman.cpp
index 66f1e19b65..8f5f6a6071 100644
--- a/src/test/fuzz/connman.cpp
+++ b/src/test/fuzz/connman.cpp
@@ -40,7 +40,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
fuzzed_data_provider.ConsumeBool()};
const uint64_t max_outbound_limit{fuzzed_data_provider.ConsumeIntegral<uint64_t>()};
- connman.Init({ .nMaxOutboundLimit = max_outbound_limit });
+ CConnman::Options options;
+ options.nMaxOutboundLimit = max_outbound_limit;
+ connman.Init(options);
CNetAddr random_netaddr;
CNode random_node = ConsumeNode(fuzzed_data_provider);