p2pool: Restart monerod only when needed and with proper args

This commit is contained in:
devhyper
2023-01-31 18:23:20 -08:00
parent b7ba9437d8
commit 757bc7d7b9
4 changed files with 127 additions and 8 deletions

View File

@@ -58,6 +58,8 @@ public:
Q_INVOKABLE void exit();
Q_INVOKABLE QVariantMap validateDataDir(const QString &dataDir) const;
Q_INVOKABLE bool checkLmdbExists(QString datadir);
Q_INVOKABLE QString getArgs(const QString &dataDir);
Q_INVOKABLE bool checkUnderSystemd();
private:
@@ -82,6 +84,7 @@ private:
QString m_monerod;
bool m_app_exit = false;
bool m_noSync = false;
QString args = "";
mutable FutureScheduler m_scheduler;
};