mirror of https://github.com/bitcoin/bitcoin
fuzz: add CConnman::SocketHandler() to the tests
This commit is contained in:
parent
cf08147bd5
commit
6d9083b249
|
@ -188,6 +188,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
|
|||
options.onion_binds.empty();
|
||||
|
||||
connman.InitBindsPublic(options);
|
||||
},
|
||||
[&] {
|
||||
connman.SocketHandlerPublic();
|
||||
});
|
||||
}
|
||||
(void)connman.GetAddedNodeInfo(fuzzed_data_provider.ConsumeBool());
|
||||
|
|
|
@ -75,6 +75,11 @@ struct ConnmanTestMsg : public CConnman {
|
|||
return InitBinds(options);
|
||||
}
|
||||
|
||||
void SocketHandlerPublic()
|
||||
{
|
||||
SocketHandler();
|
||||
}
|
||||
|
||||
void Handshake(CNode& node,
|
||||
bool successfully_connected,
|
||||
ServiceFlags remote_services,
|
||||
|
|
Loading…
Reference in New Issue