MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetNetworkActive

Method SetNetworkActive

src/net.cpp:2512–2525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2510}
2511
2512void CConnman::SetNetworkActive(bool active)
2513{
2514 LogPrintf("%s: %s\n", __func__, active);
2515
2516 if (fNetworkActive == active) {
2517 return;
2518 }
2519
2520 fNetworkActive = active;
2521
2522 if (m_client_interface) {
2523 m_client_interface->NotifyNetworkActiveChanged(fNetworkActive);
2524 }
2525}
2526
2527CConnman::CConnman(uint64_t nSeed0In, uint64_t nSeed1In, AddrMan& addrman_in, bool network_active)
2528 : addrman(addrman_in), nSeed0(nSeed0In), nSeed1(nSeed1In)

Callers 3

FUZZ_TARGET_INITFunction · 0.80
setnetworkactiveFunction · 0.80
setNetworkActiveMethod · 0.80

Calls 1

Tested by 1

FUZZ_TARGET_INITFunction · 0.64