Merge pull request #3314

9cf7c7f DaemonManager: enable dns block list in simple mode (selsta)
This commit is contained in:
luigi1111 2021-01-29 00:33:07 -05:00
commit 1f0f21a8e5
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
2 changed files with 3 additions and 6 deletions

View File

@ -1945,12 +1945,13 @@ ApplicationWindow {
return;
}
const simpleModeFlags = "--enable-dns-blocklist --out-peers 16";
if (appWindow.daemonRunning) {
appWindow.stopDaemon(function() {
appWindow.startDaemon("")
appWindow.startDaemon(simpleModeFlags)
});
} else {
appWindow.startDaemon("");
appWindow.startDaemon(simpleModeFlags);
}
}

View File

@ -89,10 +89,6 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
arguments << "--no-sync";
}
if (!flags.contains("--out-peers", Qt::CaseSensitive) && bootstrapNodeAddress == "auto") {
arguments << "--out-peers" << "16";
}
arguments << "--check-updates" << "disabled";
// --max-concurrency based on threads available.