MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsConnected

Method IsConnected

src/test/fuzz/util/net.cpp:441–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441bool FuzzedSock::IsConnected(std::string& errmsg) const
442{
443 if (m_fuzzed_data_provider.ConsumeBool()) {
444 return true;
445 }
446 errmsg = "disconnected at random by the fuzzer";
447 return false;
448}
449
450void FillNode(FuzzedDataProvider& fuzzed_data_provider, ConnmanTestMsg& connman, CNode& node) noexcept
451{

Callers 3

FUZZ_TARGETFunction · 0.45
MakeConnectedFunction · 0.45
FUZZ_TARGETFunction · 0.45

Calls 1

ConsumeBoolMethod · 0.80

Tested by

no test coverage detected