1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-13 10:02:50 -05:00

Added version field to config file.

This commit is contained in:
XMRig
2019-08-17 04:27:37 +07:00
parent fe832f510e
commit ed3a39dc74
6 changed files with 42 additions and 8 deletions

View File

@@ -50,10 +50,10 @@ class Config : public BaseConfig
public:
Config();
bool isShouldSave() const;
bool read(const IJsonReader &reader, const char *fileName) override;
void getJSON(rapidjson::Document &doc) const override;
inline bool isShouldSave() const { return (m_shouldSave || m_upgrade || m_cpu.isShouldSave()) && isAutoSave(); }
inline const CpuConfig &cpu() const { return m_cpu; }
# ifdef XMRIG_ALGO_RANDOMX