| 2510 | } |
| 2511 | |
| 2512 | void 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 | |
| 2527 | CConnman::CConnman(uint64_t nSeed0In, uint64_t nSeed1In, AddrMan& addrman_in, bool network_active) |
| 2528 | : addrman(addrman_in), nSeed0(nSeed0In), nSeed1(nSeed1In) |