mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
fuzz: add CConnman::SocketHandler() to the tests
This commit is contained in:
parent
f07bb8a929
commit
4deb5e2121
2 changed files with 8 additions and 0 deletions
|
@ -204,6 +204,9 @@ FUZZ_TARGET(connman, .init = initialize_connman)
|
|||
options.onion_binds.empty();
|
||||
|
||||
connman.InitBindsPublic(options);
|
||||
},
|
||||
[&] {
|
||||
connman.SocketHandlerPublic();
|
||||
});
|
||||
}
|
||||
(void)connman.GetAddedNodeInfo(fuzzed_data_provider.ConsumeBool());
|
||||
|
|
|
@ -80,6 +80,11 @@ struct ConnmanTestMsg : public CConnman {
|
|||
return InitBinds(options);
|
||||
}
|
||||
|
||||
void SocketHandlerPublic()
|
||||
{
|
||||
SocketHandler();
|
||||
}
|
||||
|
||||
void Handshake(CNode& node,
|
||||
bool successfully_connected,
|
||||
ServiceFlags remote_services,
|
||||
|
|
Loading…
Reference in a new issue