You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LogPrintf("Adding fixed seeds as 60 seconds have passed and addrman is empty for at least one reachable network\n");
1671
1672
}
1672
1673
1673
-
//Checking !dnsseed is cheaper before locking 2 mutexes.
1674
-
if (!add_fixed_seeds_now && !dnsseed) {
1675
-
LOCK2(m_addr_fetches_mutex, m_added_nodes_mutex);
1676
-
if (m_addr_fetches.empty() && m_added_nodes.empty()) {
1674
+
//Perform cheap checks before locking a mutex.
1675
+
elseif (!dnsseed && !use_seednodes) {
1676
+
LOCK(m_added_nodes_mutex);
1677
+
if (m_added_nodes.empty()) {
1677
1678
add_fixed_seeds_now = true;
1678
-
LogPrintf("Adding fixed seeds as -dnsseed=0 (or IPv4/IPv6 connections are disabled via -onlynet), -addnode is not provided and all -seednode(s) attempted\n");
1679
+
LogPrintf("Adding fixed seeds as -dnsseed=0 (or IPv4/IPv6 connections are disabled via -onlynet) and neither -addnode nor -seednode are provided\n");
0 commit comments