aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2021-03-19 10:28:26 +0000
committerxiphon <xiphon@protonmail.com>2021-03-19 10:31:43 +0000
commitd83f14799e74bc596da46328e5c5a9c0671f5254 (patch)
tree2a20f24bf5f5c4d19588840eaaf2f29019077ed2
parentc18614f96f1767ec276378033e7e3087c663b170 (diff)
downloadmonzero-gui-d83f14799e74bc596da46328e5c5a9c0671f5254.tar.gz
monzero-gui-d83f14799e74bc596da46328e5c5a9c0671f5254.tar.xz
monzero-gui-d83f14799e74bc596da46328e5c5a9c0671f5254.zip
DaemonManager: start monerod with '--non-interactive' cli option set
-rw-r--r--pages/settings/SettingsNode.qml2
-rw-r--r--src/daemon/DaemonManager.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml
index 9da1452e..3a9ae32f 100644
--- a/pages/settings/SettingsNode.qml
+++ b/pages/settings/SettingsNode.qml
@@ -398,7 +398,7 @@ Rectangle{
placeholderFontSize: 15
text: persistentSettings.daemonFlags
addressValidation: false
- error: text.match(/(^|\s)--(data-dir|bootstrap-daemon-address)/)
+ error: text.match(/(^|\s)--(data-dir|bootstrap-daemon-address|non-interactive)/)
onEditingFinished: {
if (!daemonFlags.error) {
persistentSettings.daemonFlags = daemonFlags.text;
diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp
index b7fb12db..bbbf263e 100644
--- a/src/daemon/DaemonManager.cpp
+++ b/src/daemon/DaemonManager.cpp
@@ -90,6 +90,7 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const
}
arguments << "--check-updates" << "disabled";
+ arguments << "--non-interactive";
// --max-concurrency based on threads available.
int32_t concurrency = qMax(1, QThread::idealThreadCount() / 2);