We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa5894f commit 96954d1Copy full SHA for 96954d1
src/net.cpp
@@ -1630,8 +1630,14 @@ void CConnman::ThreadDNSAddressSeed()
1630
}
1631
1632
1633
- if (interruptNet) {
1634
- return;
+ if (interruptNet) return;
+
1635
+ // hold off on querying seeds if p2p network deactivated
1636
+ if (!fNetworkActive) {
1637
+ LogPrintf("Waiting for network to be reactivated before querying DNS seeds.\n");
1638
+ do {
1639
+ if (!interruptNet.sleep_for(std::chrono::seconds{1})) return;
1640
+ } while (!fNetworkActive);
1641
1642
1643
LogPrintf("Loading addresses from DNS seed %s\n", seed);
0 commit comments