From 8eb9b4d37a4a9e1082d2e31dc8af170a098c44d3 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 26 Jan 2021 15:15:08 +0700 Subject: [PATCH] Update default config example. --- src/config.json | 1 + src/core/config/Config_default.h | 29 +++++++++++++++++++---------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/config.json b/src/config.json index aad27326..bfb01696 100644 --- a/src/config.json +++ b/src/config.json @@ -80,6 +80,7 @@ ], "print-time": 60, "health-print-time": 60, + "dmi": true, "retries": 5, "retry-pause": 5, "syslog": false, diff --git a/src/core/config/Config_default.h b/src/core/config/Config_default.h index 94cb88d6..afeecbce 100644 --- a/src/core/config/Config_default.h +++ b/src/core/config/Config_default.h @@ -1,12 +1,6 @@ /* XMRig - * Copyright 2010 Jeff Garzik - * Copyright 2012-2014 pooler - * Copyright 2014 Lucas Jones - * Copyright 2014-2016 Wolf9466 - * Copyright 2016 Jay D Dee - * Copyright 2017-2018 XMR-Stak , - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright (c) 2018-2021 SChernykh + * Copyright (c) 2016-2021 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,6 +16,7 @@ * along with this program. If not, see . */ + #ifndef XMRIG_CONFIG_DEFAULT_H #define XMRIG_CONFIG_DEFAULT_H @@ -29,6 +24,7 @@ namespace xmrig { +// This feature require CMake option: -DWITH_EMBEDDED_CONFIG=ON #ifdef XMRIG_FEATURE_EMBEDDED_CONFIG const static char *default_config = R"===( @@ -45,9 +41,9 @@ R"===( "restricted": true }, "autosave": true, - "version": 1, "background": false, "colors": true, + "title": true, "randomx": { "init": -1, "init-avx2": -1, @@ -80,6 +76,7 @@ R"===( "cache": true, "loader": null, "platform": "AMD", + "adl": true, "cn/0": false, "cn-lite/0": false }, @@ -90,7 +87,7 @@ R"===( "cn/0": false, "cn-lite/0": false }, - "donate-level": 5, + "donate-level": 1, "donate-over-proxy": 1, "log-file": null, "pools": [ @@ -107,15 +104,27 @@ R"===( "tls": false, "tls-fingerprint": null, "daemon": false, + "socks5": null, "self-select": null } ], "print-time": 60, "health-print-time": 60, + "dmi": true, "retries": 5, "retry-pause": 5, "syslog": false, + "tls": { + "enabled": false, + "protocols": null, + "cert": null, + "cert_key": null, + "ciphers": null, + "ciphersuites": null, + "dhparam": null + }, "user-agent": null, + "verbose": 0, "watch": true, "pause-on-battery": false }