mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
Merge bitcoin/bitcoin#29211: fuzz: fix connman
initialization
e84dc36733
fuzz: fix `connman` initialization (brunoerg) Pull request description: Fixes https://github.com/bitcoin/bitcoin/pull/29172#issuecomment-1883547121 ACKs for top commit: achow101: ACKe84dc36733
Tree-SHA512: e5f3c378cfe367cc4c387fa1b13663a74d8b667a5d130d62919e21455861cfb9383b63ef4ebe56daab7b2c09e3b5031acc463065455f71607c5fb9e3c370d3ad
This commit is contained in:
commit
507dbe4ca2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user