Seednodes are used for addr-fetch connections. When the network is disabled (networkactive=0 or setnetworkactive false), the seednodes are consumed without ever being dialled and When the network becomes active again, no further addr-fetch attempts are made, even though the seednodes are still configured. They remain unavailable until the node is restarted.
This happens because ThreadOpenConnections(), continues running its loop while the network is disabled. With < 2 outbound peers or an empty addrman, a seednode is popped from seed_nodes , queued as an addr-fetch, and then popped again from m_addr_fetches in ProcessAddrFetch(). It is then dropped because OpenNetworkConnection() returns early when the network is inactive. Once the network is re-enabled, no seednodes remain. Anchors were lost in the same way before #34213.
This change makes ThreadOpenConnections wait while the network is re-enabled, as the way ThreadPrivateBroadcast does, so no connection state is used up while the network is disabled